How to Reset a NetScaler or Access Gateway Enterprise Edition to the Factory Defaults

How to Reset a NetScaler or Access Gateway Enterprise Edition to the Factory Defaults

How to Reset a NetScaler or Access Gateway Enterprise Edition to the Factory Defaults

This post has already been read 9020 times!

Summary
This article describes how to reset a NetScaler or Access Gateway Enterprise Edition device to the factory defaults.

20130218-200017.jpg

Background
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.

Procedure
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:

> shell
# cd /etc
# for file in *; do
# rm /nsconfig/$file 2> /dev/null
# done
(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
# GLOBIGNORE=”ns-*”
# rm *
# exit
> reboot

2. Perform an initial system configuration. Connect to the device using the serial console:

> set ns config –ipaddresss -netmask
(Make additional network configuration for the next purpose of the box)
> save config
> reboot

Leave a Reply

Your email address will not be published. Required fields are marked *