This post has already been read 20307 times!
This article describes how to reset a NetScaler or Access Gateway Enterprise Edition device to the factory defaults.
Before moving a NetScaler to a different environment or changing the tasks done by the device, it is helpful and less error-prone to start from scratch and flush the configuration.
There is no command or GUI option available to reset a NetScaler or Access Gateway Enterprise Edition device to factory defaults, instead some commands must be used to initialize the NetScaler with default values.
After completing the following steps, the NetScaler will have no configuration left and will be ready for the next installation or environment.
Connect to the device using the serial console or with a Secure Shell client (SSH).
1. Delete the system, routing, and SSL configuration:
# cd /etc
# for file in *; do
# rm /nsconfig/$file 2> /dev/null
(Ignore warnings about files or directories missing. Not all files in /nsconfig are present in /etc)
# cd /nsconfig
# rm ns.conf* ZebOS.conf.* rc.conf
(Ignore warnings about files or directories missing)
# cd ssl
# rm *
2. Perform an initial system configuration. Connect to the device using the serial console:
> set ns config –ipaddresss
(Make additional network configuration for the next purpose of the box)
> save config