Use this vmcli command to set the password for the guest VM.
You must issue the vmcli -f set_password command
as tdpvmware user, and not as root.
You must issue the vmcli -f set_password command
before you run a guest scan operation.datacentername:DataCenter1
username:Domain1\Administrator
This example creates
(or sets) a common VM guest name and password that is associated with
DataCenter3. The vmcliprofile contains the following VE_DATACENTER_NAME settings:VE_DATACENTER_NAME: DataCenter1:TSM_DC1
VE_DATACENTER_NAME: DataCenter2:TSM_DC2
VE_DATACENTER_NAME: DataCenter3:TSM_DC3
VE_DATACENTER_NAME: DataCenter4:TSM_DC4
The passwordfile contains
the following settings. The settings in the passwordfile must
be specified on the same line:datacentername:DataCenter3 username:tdpvmwareuserY password:tdpvmwareuserYpwd
Tivoli Storage Manager Command Line Wrapper for Virtual Environments Version: 7.1.0.00
Build Date: Mon Nov 12 20:03:31 2012
Tivoli Storage Manager API Version 71000
Tivoli Storage Manager Command Line Wrapper Compile Version 71000
#PARAM OPERATION_TYPE 8
#PHASE_COUNT 3
#PHASE PREPARE
#PARAM BACKUP_TYPE=0
#PARAM TSM_SERVER_NAME=ORION.FINANCE.MYCOMPANY.COM
#PARAM TSM_SERVER_PORT=1500
#PARAM TSMCLI_NODE_NAME=KA3095_TSMCLI_SLUDGE
#PARAM VCENTER_NODE_NAME=
#PARAM DATACENTER_NODE_NAME=
#PARAM OFFLOAD_HOST_NAME=
#PARAM TSM_OPTFILE=/tmp/T4VE_OD3PZ9
#PARAM INPUT_FILE=/opt/tivoli/tsm/tdpvmware/common/scripts/password.txt
#PARAM TRACEFILE=
#PARAM TRACEFLAGS=
#PHASE INITIALIZE
#PHASE SET_PASSWORD
STATUS=success
#END
This example creates (or sets)
a common VM guest name and password that is associated with DataCenter1.
The vmcliprofile contains the following VE_DATACENTER_NAME settings:VE_DATACENTER_NAME: DataCenter1:TSM_DC1
VE_DATACENTER_NAME: DataCenter2:TSM_DC2
The passwordfile contains
the following settings. The settings in the passwordfile must
be specified on the same line:datacentername:DataCenter1 username:Domain1\Administrator password:secret1
Tivoli Storage Manager Command Line Wrapper for Virtual Environments Version: 7.1.0.00
Build Date: Mon Nov 12 20:03:31 2012
Tivoli Storage Manager API Version 71000
Tivoli Storage Manager Command Line Wrapper Compile Version 71000
#PARAM OPERATION_TYPE 8
#PHASE_COUNT 3
#PHASE PREPARE
#PARAM BACKUP_TYPE=0
#PARAM TSM_SERVER_NAME=ORION.FINANCE.MYCOMPANY.COM
#PARAM TSM_SERVER_PORT=1500
#PARAM TSMCLI_NODE_NAME=KA3095_TSMCLI_SLUDGE
#PARAM VCENTER_NODE_NAME=
#PARAM DATACENTER_NODE_NAME=
#PARAM OFFLOAD_HOST_NAME=
#PARAM TSM_OPTFILE=/tmp/T4VE_OD3PZ9
#PARAM INPUT_FILE=C:\Program Files\Common Files\Tivoli\TDPVMware\VMwarePlugin\
scripts\password.txt
#PARAM TRACEFILE=
#PARAM TRACEFLAGS=
#PHASE INITIALIZE
#PHASE SET_PASSWORD
STATUS=success
#END
When you create the password
file by using the echo command, make sure that
a space does not exist between the password (password1)
and the greater-than sign (>). For example:echo password1> pwd.txt
or echo password1>pwd.txt
This
example sets the password (password1) in file pwd.txt:vmcli -f set_password -I pwd.txt
Create the password file (pwd.txt)
by specifying the echo command:echo password1 > pwd.txt
This example sets the password (password1)
in file pwd.txt:vmcli -f set_password -I pwd.txt
This example sets the password
in file pwd.txt for domain mydomain and
user user1:
set -f set_password -I pwd.txt -pwtype domain -domain mydomain -user user1