?
Solved

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

Posted on 2003-03-03
2
Medium Priority
?
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

764 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