Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

upgrade Solaris 6 to Solaris 8 on a NIS+ master server

Posted on 2003-03-03
2
Medium Priority
?
392 Views
Last Modified: 2013-12-27
How can I upgrade an old sparc5 running Solaris 6, and NIS+ master server, to a Ultra box running Solaris 8, and also a NIS+ master server?

The Ultra box will replace the sparc one. The machine name, IP and domain stay the same.

thanks
0
Comment
Question by:steviewonder
2 Comments
 
LVL 1

Accepted Solution

by:
guerriero33t earned 400 total points
ID: 8060417
You can export your old nis entries to a set of files, then import those entries into your new server.

Script 1
############################################
mkdir /tmp/nisfiles
cd /tmp/nisfiles
nisdir=/usr/lib/nis;export nisdir

$nisdir/nisaddent -d aliases > aliases
$nisdir/nisaddent -d bootparams > bootpara  
$nisdir/nisaddent -d ethers > ethers
$nisdir/nisaddent -d group > group
$nisdir/nisaddent -d hosts > hosts
$nisdir/nisaddent -d netgroup > netgroup
$nisdir/nisaddent -d netid > netid
$nisdir/nisaddent -d netmasks > netmasks
$nisdir/nisaddent -d networks > networks
$nisdir/nisaddent -d passwd > passwd
$nisdir/nisaddent -d protocols > protocol
$nisdir/nisaddent -d publickey > publickey
$nisdir/nisaddent -d rpc > rpc
$nisdir/nisaddent -d services > services
$nisdir/nisaddent -d shadow > shadow
$nisdir/nisaddent -d timezone > timezone
$nisdir/nisaddent -d -t auto_home.org_dir key-value > auto_home
$nisdir/nisaddent -d -t auto_master.org_dir key-value > auto_master


Script 2
#############################################

nisDomain= "Your Domain here";export nisDomain
# execute nisserver command to initialize nisplus
 
/usr/lib/nis/nisserver -f -r -d $nisDomain -l nisplus
 
# Now do the nisaddent to add group, rpc, services and protocols
/usr/lib/nis/nisaddent -rvf /tmp/nisfiles/group group
/usr/lib/nis/nisaddent -rvf /tmp/nisfiles/rpc rpc
/usr/lib/nis/nisaddent -rvf /tmp/nisfiles/services services
/usr/lib/nis/nisaddent -rvf /tmp/nisfiles/protocol protocols
/usr/lib/nis/nisaddent -r -f /tmp/nisfiles/passwd passwd
/usr/lib/nis/nisaddent -m -f /tmp/nisfiles/shadow -t passwd.org_dir shadow

You will then need to copy over the user mail files. You can use tar or some other command.
0
 

Expert Comment

by:SpideyMod
ID: 8121000
Force Accepted (administrative action)

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question