6.2

Table Of Contents
Procedure
1 Enter the login command string in a Command Prompt window.
Option Description
vcac_url vRealize Automation URL
username@fqdn vRealize Automation username with fully qualified domain name
tname Tenant name
login --url vcac_url --user username@fqdn --tenant tname
2 Enter the password, when prompted.
3 If running in script mode, enter the password by redirecting standard input.
A successful login returns the vcac-cli> prompt without an error message.
If you omit the --tenant option, the command logs you in to the default tenant.
An error returns an explicit message. The following are possible error messages.
Error Message Reason
Command failed
java.lang.RuntimeException:
java.net.UnknownHostException:
vcac152-009-067a.eng.vmware.c
om
The hostname specified in the --url parameter is not a known host name. Check your spelling.
Command failed
com.vmware.vcac.authentication.
sts.AuthenticationFailedExceptio
n:
com.vmware.vim.sso.client.excep
tion.AuthenticationFailedExceptio
n: Provided credentials are not
valid.
The specified -user or -password value(s) are incorrect. Check spelling, check to make sure
you have specified the correct tenant.
Command failed
org.springframework.web.client.H
ttpClientErrorException: 400 Bad
Request
The specified -tenant value is unknown. Check your spelling.
Example: Logging in
Log in to API Explorer.
Welcome to vCAC CLI. For assistance press or type "hint" then hit ENTER.
vcac-cli>login --url https://vcac110-062-143.eng.vmware.com --user administrator@vsphere.local
Please enter your password: ******
Programming Guide
VMware, Inc. 404