Verifying Username and Password for VMware vCenter from the Avi Controller

Background

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.

Instructions

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:Controller-16-3-6]: > verifylogin vcenter vcenter_url 10.10.2.10 username root password vmware
+-------------------------+------+-------------------+
| Uuid                    | Name | Managed Object Id |
+-------------------------+------+-------------------+
| datacenter-2-10.10.2.10 | -    | datacenter-2      |
+-------------------------+------+-------------------+
[admin:Controller-16-3-6]: >

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-10.10.2.10.

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:Controller-16-3-6]: > verifylogin vcenter vcenter_url 10.10.2.10 username root password vmware2
{"error": "'The username/password for the vCenter is incorrect'"}
[admin:Controller-16-3-6]: