The verifylogin command can be used from the Avi Load Balancer 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 Load Balancer integration with VMware cloud.

Instructions

Log into the Avi Load Balancer Controller shell prompt and enter the verifylogin command. The Avi Load Balancer will return the following output based on the verification status:

[admin:Controller]: > 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]: >

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

With the help of verifylogin, the Avi Load Balancer Controller can detect wrong username or password. The Avi Load Balancer 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]: > 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]: