My original question was:
> Hello sun managers,
>
> I am running Solaris 2.3 with NIS+. All I want to do is change the IP
> address of the NIS+ root server.
>
> I changed it in the /etc/hosts file, and updated the NIS+ host table
> with something like this:
>
> /usr/lib/nis/nisaddent -m -f hosts-file hosts
>
> (where hosts-file also contains the new IP addresses).
>
> After reboot, NIS+ does not work. NIS+ commands either hang or fail
> with the following message:
>
> NIS+ servers unreachable.
>
> Any insights would be greatly appreciated. Thanks.
Thanks to those who responded
Neil Rickert <rickert@cs.niu.edu>
J Kevin Rohan <rohank@ochampus.mil>
irana@hydres.co.uk
lbd@mhcnet.att.com (Leslie_B_DreyerKalra)
hebert@sunrock.East.Sun.COM (Jim Hebert {*Prof Services} Sun Rochester)
Cheryl.Williams@twcable.com
matt@uts.EDU.AU (Jas (Matthew K))
steve@cegelecproj.co.uk (Steve_Kilbane)
David Allan Finch <sarum@darling.monosys.com>
shaw_j_c_c <shaw_j_c_c@bt-web.bt.co.uk>
cmtaght@bs50a.staffs.ac.uk (Alex Tarry)
and sorry about being late with the summary.
Now I know that changing the IP address is no trivial matter (I guess
Solaris expects the machine to never to be moved). The IP address is
encoded in the NIS+ configuration files and it's no easy thing to get
it changed.
The overwhelming response was that the only sure solution is to
dump NIS tables to files and reinstall NIS+ from scratch using the tables.
Actually, I should have been dumping the tables to files on a regular basis.
David Finch gave me a recipe for doing so that I've listed below.
Because of the way my NIS+ is managed, the only one I really needed to
recover was "shadow" out of those listed below. However, I would also
need to recover the cred table. Unfortunately, I can't figure out how
to dump it (and apparently neither could sun support that helped David Finch).
If anyone has figured out how to dump/recover the cred table I would
appreciate hearing about it.
-----------------------
Recipe for dump/recovery of NIS tables for IP address change from David Finch:
> a) dump databases
> -----------------
> foreach t ( aliases bootparams ethers group hosts netgroup netid netmasks \
> networks passwd protocols rpc shadow timezone )
>
> /usr/lib/nis/nisaddent -d $t > /tmp/$t
> end
>
> b) then remove NIS+ by
> ----------------------
> cd /var/nis
> rm -rf *
> cp /etc/nsswitch.files /etc/nsswitch.conf
> change your systems IP address to its new value and reboot
>
> c) reinstall nis+
> -----------------
>
> /usr/lib/nis/nisserver -r -d domain.name
>
> d) reload databases
> -------------------
> foreach t ( aliases bootparams ethers group hosts netgroup netid netmasks \
> networks passwd protocols rpc shadow timezone )
> /usr/lib/nis/nisaddent -mv -f /tmp/$f $f
> end
>
> e) recreate creds for users and hosts
> -------------------------------------
> the sun support thought you should be able to dump the cred and publickeys
> tables and reload them as well, but I could not get it to work after.
>
> You will also have to remove NIS+ from the clients and redo them,
> but this is painless.
==============================================
Robert Kline
Computer Science Department
West Chester University
West Chester, PA 19383
Phone: 610-436-2181
e-mail: rkline@wcupa.edu
==============================================
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:15 CDT