<nsx-manager> st en% Cannot enter the root shell if the root user's password has expired, invoke the following command to change root's password:set user root password
VMware NSX
set user root password-expiration 9999
set user admin password-expiration 9999Log in to the specific NSX Manager node via SSH or Console as root.
Enter your current password and then it prompts for new password, once completed the root password is changed successfully
Stop the Management Plane API service: /etc/init.d/nsx-mp-api-server stop
Note: If resetting the password on an NSX Edge node, use the following commands instead:_ `/etc/init.d/nsx-edge-api-server stop` ` /etc/init.d/nsx-edge-api-server start`
Create the trigger file that will be used to propagate the new password to the other NSX Manager Nodes: touch /var/vmware/nsx/reset_cluster_credentials
Restart the API service: /etc/init.d/nsx-mp-api-server start
Switch to the admin account : su - admin
start search resync all
In case if the password do not get synced across the other NSX manager nodes, follow the KB here NSX credentials are not being synchronized between NSX Managers after manual password reset.
Reference doc to reset the password via Grub Boot Menu: Resetting the passwords of an Appliance
Here is the KB about enabling the ssh and root login on the NSX appliance :- https://knowledge.broadcom.com/external/article/324233/