NetScaler Agent 13.1/14.1: How to Change the nsroot Password for NetScaler Agent via CLI

NetScaler Agent 13.1/14.1: How to Change the nsroot Password for NetScaler Agent via CLI

book

Article ID: CTX692914

calendar_today

Updated On:

Description

Requirement to change nsroot password for NetScaler Agent. 

 

Resolution

If you need to update the nsroot password for your NetScaler Agent (versions 13.1 or 14.1) via the command-line interface (CLI), follow these straightforward steps:

Procedure:

  1. Access the NetScaler Agent CLI: Establish an SSH connection to the NetScaler Agent using the dedicated recovery user, nsrecover, and the current nsroot password.

    Bash
    ssh nsrecover@<NetScaler_Agent_IP_Address>
    

    Replace <NetScaler_Agent_IP_Address> with the actual IP address of your NetScaler Agent.

  2. Initiate Password Change: Once logged in as nsrecover, execute the following command to begin the nsroot password modification process:

    Bash
    passwd nsroot
    
  3. Enter and Confirm New Password: The system will prompt you to enter the new password for the nsroot user. Type your desired new password and press Enter.

    Enter new password:
    

    Next, you will be asked to confirm the new password by retyping it exactly as you did before.

    Retype new password:
    

    Ensure that both entries match.

  4. Successful Password Update: Upon successful confirmation of the new password, you will receive a confirmation message indicating that the nsroot password has been updated.

  5. Verify New Password (Optional but Recommended): You can now test the newly set nsroot password by attempting to log in to the NetScaler Agent CLI using the nsrecover username and the updated password.

    Bash
    ssh nsrecover@<NetScaler_Agent_IP_Address>
    

    Enter the new nsroot password when prompted. Successful login confirms the password change.

Note: Screenshots are from the LAB ADM Agent


Problem Cause

How to Change the nsroot Password for NetScaler Agent Using CLI

Issue/Introduction

NetScaler Agent 13.1/14.1: How to Change the nsroot Password for NetScaler Agent via CLI