NetScaler How to reset passwords
http://blog.51cto.com/caojin/1898401
Sometimes we encounter a forgotten netscaler password, or take over someone else's device without knowing the password. In this case can see but can't get in, it feels really sour! How to initialize the NetScaler password, it is important to enable the device on hand in time.
Using the console line to connect to the NetScaler, press the Start button to see the following, follow the instructions below
1. Attach a console cable to the Serial console (9600 baud, 8 bits, 1 stop bit, No parity) of the NetScaler Applianc E.
2. Restart the NetScaler appliance.
3. Press any of the following keys, as prompted:
Press Spacebar when the following message is displayed:
Hit [Enter] to boot immediately, or any other key for command prompt booting [kernel] in seconds
Press Ctrl and C keys simultaneously when the following message is displayed:
Press [ctrl-c] for command prompt, or any other key to boot immediately.
booting [kernel] in 2 seconds ...
4. To start the appliance kernel in a single user mode, enter the following command:
Boot–s
Note:if Boot-s does not work, then try reboot---S and appliance would reboot in single user mode.
5. Press Enter when the following message is displayed:
Enter full pathname of Shell or RETURN for/bin/sh:
Note:notice the prompt of the appliance changes to \[email protected]\h\$.
6. Run The following command to check the disk consistency:
\[email protected]\h\$/sbin/fsck/dev/ad0s1a(This command must be executed first, otherwise it cannot be mounted/flash)
Note:refer to the Knowledge Center article Ctx121853–device Names Assigned to Hard Disk in Various Models of the Citrix NetScaler Appliance to verify the device name assigned to the hard disk of the Appliance model and replace AD0S1A in the Preceding command with the appropriate device name.
7. Run the following command to display the mounted partitions:
Df
8. Run the following command to mount the flash drive:
\[email protected]\h\$/sbin/mount/dev/ad0s1a/flash (Be sure to hang up the flash, otherwise you won't see NS.CONF)
If the preceding command fails to mount the flash drive, then run the following command to create the Flash directory and Then run the preceding command again to mount the drive:
\[email protected]\h\$ Mkdir/flash(if there is/flash can not perform this step)
9. Run the following command to the Nsconfig directory:
\[email protected]\h\$ Cd/flash/nsconfig
Run the following set of commands to rewrite the ns.conf file and remove the set of system commands defaulting to The Nsroot User:
A. Run the following command to create a new configuration file, does not having commands defaulting to the Nsroot User:
\[email protected]\h\$ grep–v "Set System User Nsroot" Ns.conf > New.conf(extract other configurations other than Nsroot users to new files)
B. Run a command similar to the following command to make a backup of the existing configuration file:
\[email protected]\h\$ mv ns.conf old.ns.conf(Back up the original configuration)
C. Run the following command to rename the new.conf file to ns.conf:
\[email protected]\h\$ mv new.conf ns.conf(start with a configuration without nsroot)
One. Run the following command to restart the appliance:
Reboot
The. Log in to the appliance by using the default Nsroot user credentials.
At this time nsroot password is the initial password, the direct input nsroot login can
Run the following command to reset the Nsroot user password of your choice:
> Set System User Nsroot <New_Password> re-enter password
NetScaler How to reset passwords