Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of resetting password in Netscaler

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Sometimes we come across situations where we forget the Netscaler password or take over other people's devices without knowing the password. It's really sour to be able to see but can't get in under such circumstances! How to initialize the password of Netscaler and enable the device on hand in time is very important.

Connect to Netscaler with the console line, press the start button and you will see the following. Just 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 appliance.

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 10 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 on a single user mode, enter the following command:

Boot-s

Note: If boot-s does not work, then try reboot-- s and appliance will 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 that the prompt of the appliance changes to\ u @\ h.

6. Run the following command to check the disk consistency:

\ u@\ h\ $/ sbin/fsck / dev/ad0s1a (this command must be executed first, otherwise / flash cannot be mounted)

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:

\ u@\ h\ $/ sbin/mount / dev/ad0s1a / flash (be sure to hang up the flash, otherwise you won't see the 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:

\ u@\ h\ $mkdir / flash (if there is / flash, you don't have to do this step)

9. Run the following command to change to the nsconfig directory:

\ u@\ h\ $cd / flash/nsconfig

10. 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 that does not have commands defaulting to the nsroot user:

\ u@\ h\ $grep-v "set system user nsroot" ns.conf > new.conf (extract configurations other than nsroot users to the new file)

B. Run a command similar to the following command to make a backup of the existing configuration file:

\ u@\ h\ $mv ns.conf old.ns.conf (backup the original configuration)

C. Run the following command to rename the new.conf file to ns.conf:

\ u@\ h\ $mv new.conf ns.conf (start with a configuration without nsroot)

11. Run the following command to restart the appliance:

Reboot

12. Log in to the appliance by using the default nsroot user credentials.

At this time, the password of nsroot is the initialization password. Just enter nsroot to log in.

13. Run the following command to reset the nsroot user password of your choice:

Set system user nsroot re-enter your password

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report