IBM Tivoli Storage Manager for Virtual Environments, Version 7.1

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.
Linux operating systems Linux operating systems You must issue the vmcli -f set_password command as tdpvmware user, and not as root.
Linux operating systems Windows operating systems Linux operating systems Windows operating systems 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.
The settings in the passwordfile must be specified on the same line.

Examples

Linux operating systems Linux operating systems 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
As a result, the vmcli -f set_password -type VMGuest -I password.txt sets the password as shown in the command output:
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
Windows operating systems Windows operating systems 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
As a result, the vmcli -f set_password -type VMGuest -I password.txt sets the password as shown in the command output:
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
Windows operating systems Windows operating systems 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
Linux operating systems Linux operating systems 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

Linux operating systems Windows operating systems Linux operating systems Windows operating systems 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


Feedback