Verifying Username and Password for VMware vCenter from the Avi Controller


The verifylogin command can be used from the Avi Controller shell prompt to validate the login settings of the integrated cloud. Follow the steps outlined in this article to check the correctness of the credentials provided for VMware vCenter. This option is useful when troubleshooting an Avi Vantage integration with VMware cloud.


Login to the Avi Controller, bring up the shell prompt and try the verifylogin command. Avi Vantage 16.3 and later versions will return the following output based on the verification status:

[admin:ctrl-tb2]: > verifylogin vcenter host username root password vmware
| Uuid | Name | Managed Object Id |
| -    | -    | datacenter-15     |

In the above example, username root and password vmware are the correct credentials for vCenter. The Avi Controller provides details of the VMware cloud datacenter-2-

With the help of verifylogin, the Avi Controller can detect wrong username or password. The Avi Controller returns the error “The username/password for the vCenter is incorrect” when wrong credentials are supplied for vCenter. Observe the error message that appears as the output in the following snippet.

[admin:ctrl-tb2]: > verifylogin vcenter host username root password vmware1
{"error": "ServerFaultCode: Cannot complete login due to an incorrect user name or password."}