Advertisements

Change the Hostname of a NetScaler / Reset configuration to factory defaults

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:
# cd /nsconfig
  • 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:
# vi rc.conf
  • 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.
Advertisements

About CyberRuiz
Highly motivated with over 12 years experience on Citrix/VMWare/Microsoft/technologies. Exceptional communication skills and team player. CCIA – Citrix Certified Integration Architect. CCEA – Citrix Certified Enterprise Administrator. VCP – VMWare Certified Professional in ESX 2.x, VI3, VI4 MCSE – Microsoft Certified Systems Engineer

One Response to Change the Hostname of a NetScaler / Reset configuration to factory defaults

  1. Ronny says:

    Thanks for finally writing about >Change the Hostname of a NetScaler /
    Reset configuration to factory defaults | Daniel Ruiz – Blog
    <Loved it!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: