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

Instructions

Log into the NSX Advanced Load Balancer Controller shell prompt and enter the verifylogin command. The NSX Advanced Load Balancer 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 NSX Advanced Load Balancer Controller returns the details of the VMware cloud datacenter-2-10.10.2.10.

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