Problem
I want to change the system name or IP. What are the different files
that need to be edited to effect this change? What files need
to be changed if SCO TCP/IP is installed? Solution
To change the system name:(1) Log in as root.(2) Modify the system name using the command:uname -S newnamewhere "newname" is the new system name.
(3a) This step applies ONLY to SCO Open Server Release 5.0; if you have a version previous to 5.0, skip to (3b), below:
If you are running the "MMDF" Mail System then you can either:
1. Backup the existing configuration using:# cd /usr/mmdf
# find mmdftailor table -print | cpio -ovc -O mmdf.orig.cpio2. Make the changes to the MMDF files manually by:
# su - mmdfChange using your favorite editor the configuration files there to the new name in /usr/mmdf/mmdftailor and the configuration files in /usr/mmdf/table.
3. Then re-build the MMDF database using:
# ./dbmbuild -nvAlternatively, backup your MMDF database as step one above and run the command "mkdev mmdf" and change the host name at the top of the window.
(3b) For Release 3.0 and earlier:Modify the node name in the kernel as follows:
a. cd /etc/conf/cf.db. ./configurec. Choose "10. System Name"d. Change the current value of NODE to "newname"e. Relink the kernel using ./link_unixThis will keep the nodename and the system name consistent.
IF you have MMDF configured, you will need to modify the files
in /usr/mmdf and /usr/mmdf/table to effect the change in system
name. This procedure is outlined in another script in this
database TA106343 entitled, "Inconsistency in MMDF system name, and
how to change the system name".For all releases, IF you have SCO TCP/IP or the ODT-NET Service installed and configured, continue by making the following changes:
(4) Edit the file /etc/hosts and change the line corresponding
to the old system name to read:XXX.XXX.XXX.XXX newname.company.COM newnamewhere "XXX.XXX.XXX.XXX" represents the IP address of this system newname in the new system name.
(5) Edit the file /etc/default/nbconf and change the value of
NB_HOST to read:NB_HOST=newname(6) Edit the file /etc/default/tcp and change the value of
DOMAIN to read:DOMAIN=company.COM(7) Reboot the system.To change the IP Address:(1) Either run "netconfig" and change the IP address information
in the Protocol section and this will recommend a kernel relink.or:Change /etc/tcp and /etc/hosts with the new IP address
(2) Change the IP address information in:/etc/default/nbconf
/etc/default/tcpFor versions earlier to 5.0.6, there was no GATEWAY line, so it's likely a gateway route is set in /etc/rc2.d/S99gateway or /etc/idrc.d/gateway and should be changed if the gateway has changed.
(3) Change any layered software, such as MMDF (above), DHCP config,
Address Allocation ranges, DNS or any restrictions in software
such as Netscape, Samba, AFPS or VisionFS that refer to IP
address ranges.(4) Then reboot. See also
uname(ADM)