How to Reset nsroot Password on NetScaler Console
book
Article ID: CTX232550
calendar_today
Updated On:
Description
Citrix ADM, formerly NetScaler Console
This article describes how to reset nsroot password on NetScaler MAS.
Note: For NetScaler Console Agents, you can replace the path with dev/da0s1a /flash
1. mount dev/da0s1a /flash
2. (No /etc/passwd)
Instructions
Hypervisors | Flash Partition /flash | Password Recovery steps |
XenServer using XenCenter Client | ad0s1a |
- Access NetScaler MAS through XenCenter console.
- Restart NetScaler MAS.
- Interrupt the boot sequence at the point where it says press Ctrl-C at the bootloader (shortly after message "Loading /boot/defaults/loader.conf")
- To start the VM kernel in a single user mode, run the following command at OK Prompt
boot -s - After the appliance boots in single user mode, it displays the following message:
Enter full path of shell or RETURN for /bin/sh: - Press ENTER key to enter into /u@ prompt
- Mount the flash partition using the following command:
mount dev/ad0s1a /flash - Delete /flash/mpsconfig/master.passwd
- Delete rm –rf /etc/passwd
- Create new file using the following command:
touch /flash/mpsconfig/.recover - Run the following command:
reboot - Log on with nsrecover/nsroot
|
Esx using Vsphere Client | da0s1a |
- Access NetScaler MAS through Vsphere console.
- Restart NetScaler MAS.
- Interrupt the boot sequence at the point where it says press Ctrl-C at the bootloader (shortly after message "Loading /boot/defaults/loader.conf")
- To start the VM kernel in a single user mode, run the following command at OK Prompt
boot -s - After the appliance boots in single user mode , it displays the following message:
Enter full path of shell or RETURN for /bin/sh: - Press ENTER key to enter into /u@ prompt
- Mount the flash partition using the following command:
mount dev/da0s1a /flash - Delete /flash/mpsconfig/master.passwd
- Delete rm –rf /etc/passwd
- Create new file using the following command:
touch /flash/mpsconfig/.recover - Run the following command:
reboot - Log on with nsrecover/nsroot
|
Hyper V using Hyper V Manager | ad0s1a |
- Access NetScaler MAS through Hyper V Manager console.
- Restart NetScaler MAS.
- Interrupt the boot sequence at the point where it says press Ctrl-C at the bootloader (shortly after message "Loading /boot/defaults/loader.conf")
- To start the VM kernel in a single user mode, run the following command at OK Prompt
boot -s - After the appliance boots in single user mode , it displays the following message:
Enter full path of shell or RETURN for /bin/sh: - Press ENTER key to enter into /u@ prompt
- Mount the flash partition using the following command:
mount dev/ad0s1a /flash - Delete /flash/mpsconfig/master.passwd
- Delete rm –rf /etc/passwd
- Create new file using the following command:
touch /flash/mpsconfig/.recover - Run the following command:
reboot - Log on with nsrecover/nsroot
|
KVM using SSH client (SSH to KVM Server by using any SSH client) | vtbd0s1a |
- Access NetScaler MAS by ssh to KVM server with any SSH
client. - Restart NetScaler MAS.
- Interrupt the boot sequence at the point where it says press Ctrl-C at the bootloader (shortly after message "Loading /boot/defaults/loader.conf")
- At OK prompt ,execute the command
set console="comconsole,vidconsole" - To start the VM kernel in a single user mode, run the following command at OK Prompt
boot -s - After the appliance boots in single user mode , it displays the following message:
Enter full path of shell or RETURN for /bin/sh: - Press ENTER key to enter into /u@ prompt
- Mount the flash partition using the following command:
mount dev/vtbd0s1a /flash - Delete /flash/mpsconfig/master.passwd
- Delete rm –rf /etc/passwd
- Create new file using the following command:
touch /flash/mpsconfig/.recover - Run the following command:
reboot - Log on with nsrecover/nsroot
|
Environment
This software application is provided to you as is with no representations, warranties or conditions of any kind. You may use and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that: (a) the software application may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the software application fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software application. In no event should the software application be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SOFTWARE APPLICATION, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the software application.
Issue/Introduction
This article describes how to reset nsroot password on NetScaler Console.
Was this article helpful?
thumb_up
Yes
thumb_down
No