VMware Networking Community
soglesby
Contributor
Contributor
Jump to solution

How do you update the CLI/API/Web password on the NSX Manager?

I've looked in several places and not seen how to change the password for direct access to the NSX Manager (i.e. not via vCenter):

  • NSX 6 Installation and Upgrade Guide.pdf
  • nsx_61_api.pdf
  • The NSX Manager CLI itself (in privileged mode or not)
  • configuration of the NSX Manager in vCenter's "Networking and Security" (a long shot)
  • The NSX Manager web UI

Is there a way to change it?

Reply
0 Kudos
1 Solution

Accepted Solutions
Richard__R
Enthusiast
Enthusiast
Jump to solution

It should work with:

enable

con t

cli password PASSWORD

write memory

(just tested this with NSX-v 6.1.2)

I think your command is trying to create the admin user again.

Cheers

Richard

View solution in original post

Reply
0 Kudos
5 Replies
Richard__R
Enthusiast
Enthusiast
Jump to solution

If you're not actually locked out then have you looked at page 15 of the NSX CLI guide?

Reply
0 Kudos
rbenhaim
Enthusiast
Enthusiast
Jump to solution

Hello Richard,

I try this procedure from Page 15:

http://pubs.vmware.com/NSX-61/topic/com.vmware.ICbase/PDF/nsx_61_cli.pdf

this will not work for admin user. you will get this error:

nsxmgr-l-01a(config)# user  admin password  plaintext  VMware1!

Failed to add user. Note: You cannot use this command to change the passwd of an existing user.

ERROR: could not add user:admin

Reply
0 Kudos
Richard__R
Enthusiast
Enthusiast
Jump to solution

It should work with:

enable

con t

cli password PASSWORD

write memory

(just tested this with NSX-v 6.1.2)

I think your command is trying to create the admin user again.

Cheers

Richard

Reply
0 Kudos
soglesby
Contributor
Contributor
Jump to solution

Thanks; I verified Richard's answer in our 6.1.2 env. I had overlooked the existence of a CLI ref doc.

"cli password <password>" changes the admin password for CLI, API and Web access. The vCenter connection is not affected (NSX must sync any changes needed) so you can continue managing resources.

Reply
0 Kudos