Change the Hostname of a NetScaler / Reset configuration to factory defaults
June 4, 2012 1 Comment
I recently had to move a NetScaler to another datacenter with a colleague of mine. We had to ensure we did not only clear the config, but actually set the NetScaler to factory default in order to set it up as a new appliance in the new place.
The following are the steps we followed (Thank you Juan)
1. Reset to factory default since “clear ns config full” clears everything except the NSIP and default gateway (dangerous in case the SNIP is already in use – believe me I learned the hard way)
- SSH using Putty into the Netscaler and login
- Type “shell” to enter shell
- cd /nsconfig
- Rename the configuration by typing “mv ns.conf ns.conf.bak”
- Type reboot
2. Now to change the hostname of a NetScaler appliance, complete the following procedure from the command line interface of the appliance:
- Log on to the NetScaler appliance by using an SSH utility.
- Switch to the shell prompt.
- Run the following command to change to the /nsconfig directory:
- Display the content of the directory.
- If exists, run the following command to open the rc.conf file in a text editor, such as the vi editor:
- Edit the file to replace the hostname with the one available in the license file.
- Save and close the file.
- Change to the /etc directory.
- Open the hosts file in the vi editor.
- Edit the file to replace the hostname with the one available in the license file.
- Save and close the file.
- Restart the appliance.
Thanks for finally writing about >Change the Hostname of a NetScaler /
Reset configuration to factory defaults | Daniel Ruiz – Blog
<Loved it!