I had some quick answers given:
>From Sean Quaint:
==============
For hostname:
/etc/net/ticots/hosts
/etc/net/ticlts/hosts
/etc/net/ticotsord/hosts
/etc/hostname.hme0
/etc/inet/hosts
/etc/nodename
for ip addr
/etc/inet/hosts
>From Kevin Korb:
=============
I have never liked sys-unconfig. If you are just changing the hostname and
IP address all you have to do is edit /etc/hosts /etc/hostname /etc/nodename
and then reboot. If you are changing subnets you will have to edit
/etc/netmasks and /etc/defaultrouter. If you change name services you will
have to edit /etc/nsswitch.conf plus the files for the new name service.
>From Dave Foster:
=============
Check the FAQ and archives...I know this has been answered
multiple times. I'm sure it's in one of those places.
John Goodall
==========
what needs to be changed? ip address can be done with ifconfig and
the hostname is stored in a bunch of files. if that is it, i can get
you the file names of the hostnames to change.
>From Dave Uhring:
=============
Execute man sys-unconfig. All the files are listed at the bottom of the
man-page.
-------------------------------------
So, I did check the FAQs and found the following in Casper Dik's Solaris 2
FAQ (http://www.science.uva.nl/pub/solaris/solaris2.html):
3.48) How do I change my hostname?
The supported way to change your hostname is:
# /usr/sbin/sys-unconfig
The system will halt and on subsequent boot will ask for its name and other
networking parameters again.
You may wish to save a copy of /etc/nsswitch.conf beforehand as that file
is overwritten by the configuration process.
Note that sys-unconfig is not supported on diskless or dataless
workstations. On those, you'll need to edit files by hand. See the
sys-unconfig(1M) for a list of the files that need changing.
man sys-unconfig gave a list of all the stuff it does, which sounds like
it does a bit too much if you just want to change host name and IP.
Thanks to those who replied:
Sean Quaint <squaint@mediaone.net>
Kevin M. Korb <kmk@sanitarium.net>
David Foster <foster@pinwheel.ucsd.edu>
John Goodall <jgoodall@tvdata.com>
Dave Uhring <duhring@charter.net>
-----------------------------------
My original Post was....
We just saw this post:
--------------------------------------------------------------------------
http://www.unixinsider.com/swol-10-2000/swol-1027-supersys.html
...
Do not use "sys-unconfig" on a Solaris 8 system -- it is badly broken
and will really hose up the system info, and there's no fix yet, just
a partial patch.
-- Karl Vogel <vogelke@dnaco.net> ASC/YCOA, Wright-Patterson AFB, OH 45433, USA-------------------------------------------------------------------------------
So, my problem is that we have given a new Solaris 8 server a temporary name. We will soon have to swap the identities between an old server and the new one.
The old one is running Solaris 2.6 so sys-unconfig can be used there.
For the new Solaris 8 server can anyone list for me all the places I have to change information by hand to emulate what sys-unconfig does, or should I apply the patch (?patch ID?) run sys-unconfig and fix up what it doesn't do by hand?
_______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:25 CDT