Cisco Headend System Release 2.7 Installation Guide
Chapter 7 Change the DNCS and Application Server Hostname with the hostnmchg Script
98
740020 Rev H
Run the hostnmchg Script
Running the hostnmchg Script on the DNCS
Follow these instructions to run the hostnmchg script on the DNCS.
1 Follow the instructions in Appendix A, Stopping System Components (on page
1 Follow the instructions in Appendix A, Stopping System Components (on page
203), to shut down the DNCS, the Application Server, and Spectrum.
2 Click EXIT on the bottom of the DNCS terminal, and then click OK. The user
logs out of the DNCS and the CDE Login window appears.
3 Log in to the DNCS as root user.
4 From an xterm window on the DNCS, type su - informix and then press Enter.
4 From an xterm window on the DNCS, type su - informix and then press Enter.
You become informix user in the xterm window.
5 Type onmode -ky and then press Enter. The Informix database shuts down.
6 Type exit and then press Enter. You log out as informix user in the xterm
6 Type exit and then press Enter. You log out as informix user in the xterm
window.
7 Type the following command:
/dvs/dncs/bin/hostnmchg.sh [new_hostname] [new_ip_address] and then
press Enter.
Notes:
press Enter.
Notes:
Substitute your new hostname for [new_hostname].
Substitute your new IP address for [new_ip_address].
Result: The following message appears:
This script will modify the system as follows:
Old hostname = <old_hostname>
Old IP address = <old_IP_address>
New hostname = <new_hostname>
New IP address = <new_ip_address>
Primary network interface file = /etc/hostname.hme1
Continue [y,n,?,q]
This script will modify the system as follows:
Old hostname = <old_hostname>
Old IP address = <old_IP_address>
New hostname = <new_hostname>
New IP address = <new_ip_address>
Primary network interface file = /etc/hostname.hme1
Continue [y,n,?,q]
8 Type y to continue (or press n to exit) and then press Enter.
Results:
The script displays a list of affected files as it changes the hostname variable
and IP address.
Note: If the script detects that the hostname variable has been changed
before, the script requires confirmation from the operator before changing
some hostname variables.
and IP address.
Note: If the script detects that the hostname variable has been changed
before, the script requires confirmation from the operator before changing
some hostname variables.
If your system supports Spectrum, a Do you want to change the Spectrum
files message appears.
files message appears.