Set_password
Use this vmcli command to set the password for the guest VM.
Syntax
The vmcli -f set_password command uses this syntax:vmcli -f set_password
[-type
VMGuest]
-I
passwordfile
The -type VMGuest parameter is required
when you set the password for application protection reporting.
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.Parameters
- -type VMGuest
- This parameter identifies that the password applies to a VM. This parameter is required when you set the password for application protection reporting.
- -I passwordfile
- Specify the following information in this file:
- datacentername: data center in vmcliprofile
- Specify the datacenter that contains the VM
guests. The datacenter must be defined in the
vmcliprofile. The password is applied to that datacenter only. For
example:
datacentername:DataCenter1 - username: common VM guest user
- Specify the user name that logs in to the VM guest. For Windows,
the DOMAIN\User format is allowed for the user
name. For example:
username:Domain1\Administrator - password: password
- Specify the password to log in to the VM guest.
Examples
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_DC4The passwordfile contains
the following settings. The settings in the passwordfile must
be specified on the same line:datacentername:DataCenter3 username:tdpvmwareuserY password:tdpvmwareuserYpwdAs a result, the vmcli -f set_password -type VMGuest -I password.txt sets the
password as shown in the command
output:
IBM Storage Protect Command Line Wrapper for Virtual Environments Version: 8.1.0
Build Date: Mon Dec 12 20:03:31 2016
IBM Storage Protect API Version 81000
IBM Storage Protect Command Line Wrapper Compile Version 81000
#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_DC2The passwordfile contains
the following settings. The settings in the passwordfile must
be specified on the same line:datacentername:DataCenter1 username:Domain1\Administrator password:secret1As a result, the vmcli -f set_password -type VMGuest -I password.txt sets the
password as shown in the command
output:
IBM Storage Protect Command Line Wrapper for Virtual Environments Version: 8.1.0
Build Date: Mon Dec 12 20:03:31 2016
IBM Storage Protect API Version 81000
IBM Storage Protect Command Line Wrapper Compile Version 81000
#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\IBM\StorageProtect\Framework\VEGUI
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.txtThis
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