How to Reset nsroot Password on NetScaler Console

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 /flashPassword Recovery steps
XenServer using XenCenter Clientad0s1a
  1. Access NetScaler MAS through XenCenter console.
  2. Restart NetScaler MAS.
  3. Interrupt the boot sequence at the point where it says press Ctrl-C at the bootloader (shortly after message "Loading /boot/defaults/loader.conf")
  4. To start the VM kernel in a single user mode, run the following command at OK Prompt
    boot -s
  5. After the appliance boots in single user mode, it displays the following message:
    Enter full path of shell or RETURN for /bin/sh:
  6. Press ENTER key to enter into  /u@ prompt    
  7. Mount the flash partition using the following command:
    mount dev/ad0s1a /flash
  8. Delete /flash/mpsconfig/master.passwd
  9. Delete rm –rf /etc/passwd
  10. Create new file using the following command:
    touch /flash/mpsconfig/.recover
  11. Run the following command:
    reboot
  12. Log on with nsrecover/nsroot
Esx using Vsphere Clientda0s1a
  1. Access NetScaler MAS through Vsphere console.
  2. Restart NetScaler MAS.
  3. Interrupt the boot sequence at the point where it says press Ctrl-C at the bootloader (shortly after message "Loading /boot/defaults/loader.conf")
  4. To start the VM kernel in a single user mode, run the following command at OK Prompt
    boot -s
  5. After the appliance boots in single user mode , it displays the following message:
    Enter full path of shell or RETURN for /bin/sh:
  6. Press ENTER key to enter into  /u@ prompt
  7. Mount the flash partition using the following command:
    mount dev/da0s1a /flash
  8. Delete /flash/mpsconfig/master.passwd
  9. Delete rm –rf /etc/passwd
  10. Create new file using the following command:
    touch /flash/mpsconfig/.recover
  11. Run the following command:
    reboot
  12. Log on with nsrecover/nsroot
Hyper V using Hyper V Managerad0s1a
  1. Access NetScaler MAS through Hyper V Manager console.
  2. Restart NetScaler MAS.
  3. Interrupt the boot sequence at the point where it says press Ctrl-C at the bootloader (shortly after message "Loading /boot/defaults/loader.conf")
  4. To start the VM kernel in a single user mode, run the following command at OK Prompt
    boot -s 
  5. After the appliance boots in single user mode , it displays the following message:
    Enter full path of shell or RETURN for /bin/sh:
  6. Press ENTER key to enter into  /u@ prompt
  7. Mount the flash partition using the following command:
    mount dev/ad0s1a /flash
  8. Delete /flash/mpsconfig/master.passwd
  9. Delete rm –rf /etc/passwd
  10. Create new file using the following command:
    touch /flash/mpsconfig/.recover
  11. Run the following command:
    reboot
  12. Log on with nsrecover/nsroot
KVM using SSH client (SSH to KVM Server by using any SSH client)vtbd0s1a
  1. Access NetScaler MAS  by ssh to KVM server with any SSH
    client.
  2. Restart NetScaler MAS.
  3. Interrupt the boot sequence at the point where it says press Ctrl-C at the  bootloader (shortly after message "Loading /boot/defaults/loader.conf")
  4. At OK prompt ,execute the command
    set console="comconsole,vidconsole"
  5.  To start the VM kernel in a single user mode, run the following command at OK Prompt
    boot -s 
  6.  After the appliance boots in single user mode , it displays the following message:
    Enter full path of shell or RETURN for /bin/sh:
  7.  Press ENTER key to enter into  /u@ prompt
  8. Mount the flash partition using the following command:
    mount dev/vtbd0s1a /flash
  9. Delete /flash/mpsconfig/master.passwd
  10. Delete rm –rf /etc/passwd
  11. Create new file using the following command:
    touch /flash/mpsconfig/.recover
  12. Run the following command:
    reboot
  13. 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.