VMware Networking Community
siddharthasingh
Contributor
Contributor
Jump to solution

NSX ( NSXv, 6.4) EDGE CLI doesn't provide option to change password for 'admin'

Hi All,

I am trying to updated the 'admin' password on NSX ( NSXv, 6.4) using CLI. I have logged into edge appliance but there is no CLI command to update password.

I have looked into NSX 6.4 CLI doc :

https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSphere/6.4/nsx_64_cli.pdf

under section 'NSX Manager and NSX Edge CLI Passwords'  it does suggest to use 'password' command. However I am getting error as 'Unknown command'

NSX-edge-> password

% Unknown command.

NSX-edge-> cli password

% Unknown command.

Please let me know whether I am missing anything here.

Thank you

Tags (3)
Reply
0 Kudos
1 Solution

Accepted Solutions
p0wertje
Hot Shot
Hot Shot
Jump to solution

According to documentation you cannot do that.

It makes sense, because edges are deployed and managed by the nsx manager (via the vsphere-webclient)

Only on the standalone edge you can use the password command on cli. Because that is not managed by nsx.

The other way to do it is via api.

See https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSphere/6.4/nsx_64_api.pdf  page 364

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved

View solution in original post

Reply
0 Kudos
4 Replies
p0wertje
Hot Shot
Hot Shot
Jump to solution

Hi.

The documentation says the following: (page 17)

After the NSX Edge appliance has been deployed, you can change the password from the vSphere Web Client (Network & Security > NSX Edges > Select an Edge > Actions > Change CLI Credentials).

The standalone NSX Edge appliance uses different passwords to enter basic mode and privileged mode. When you deploy a standalone NSX Edge appliance from an OVF file you are prompted to configure both passwords. After the standalone NSX Edge appliance has been deployed, you can change the basic and privileged mode passwords with the password command.

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved
Reply
0 Kudos
siddharthasingh
Contributor
Contributor
Jump to solution

Hi Chris,

I am able to update the credentials using WebClient.  However I wanted to perform it via CLI but mentioned 'password' command throws error.

Reply
0 Kudos
p0wertje
Hot Shot
Hot Shot
Jump to solution

According to documentation you cannot do that.

It makes sense, because edges are deployed and managed by the nsx manager (via the vsphere-webclient)

Only on the standalone edge you can use the password command on cli. Because that is not managed by nsx.

The other way to do it is via api.

See https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSphere/6.4/nsx_64_api.pdf  page 364

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved
Reply
0 Kudos
siddharthasingh
Contributor
Contributor
Jump to solution

Thanks Chris for your input. It makes sense.

Reply
0 Kudos