OmniCube CLI Reference 1 - Introduction to the OmniCube CLI
You can use several methods to supply the IP address for a vCenter Server if you do not use a vCenter Server
account (single sign-on):
• Use the --serverip-address option on the svt-session-start command line to specify the IP address
for the vCenter Server when starting a session.
• Use the --serverip-address option on each command line.
• Set the VI_SERVER environment variable to the vCenter Server IP address prior to issuing commands.
You might want to use this method if you are using a script. See Using Environment Variables on page 9.
You can use several methods to supply vCenter Server authentication credentials if you do not use a vCenter
Server account:
• Use the --username name option and, optionally, the --password password option on the command line. If
you do not specify the password, you are prompted for the password.The password you enter is not echoed.
Note: Specifying a password by using the --password password option might be an unacceptable security
risk.
• Supply the vCenter Server user name and password when prompted after issuing a command.
• Set the VI_USERNAME and VI_PASSWORD environment variables to the vCenter Server user name and
password prior to issuing commands. See Using Environment Variables on page 9.
Note: Specifying a password in an environment variable might be an unacceptable security risk.
• Specify a session file that contains valid vCenter Server credentials:
â—¦ On the command line, use the --sessionfile file option.
â—¦ Prior to issuing commands, set the VI_SESSIONFILE environment variable. See Using Environment
Variables on page 9.
Note: Using a session file might be an unacceptable security risk.
• Specify a credential store file that contains valid vCenter Server credentials:
â—¦ On the command line, use the --credstore file option.
â—¦ Before typing any commands, set the VI_CREDSTORE environment variable to specify a credential
store. See Using Environment Variables on page 9.
The order of precedence, from highest to lowest, for vCenter Server authentication is:
• Credentials specified using options on the command line.
• Credentials defined using environment variables.
• Credentials defined in a credential store.
• Credentials specified when prompted.
See vCenter Identification and Authentication Options on page 12 for more information.
7