Chapter 3. General administration and high availability 75
3.3.2 Setting up automatic login to the CLI
You can set up the CLI to automatically log you in without specifying your user name or
password each time you run a csmcli command or enter the csmcli shell. Use the
tpcrcli-auth.properties file to create a persistent copy of the user name and encrypted
password to be used for automatic authentication and authorization. The password is
encrypted after you start csmcli.bat, as shown in Example 3-6.
Example 3-6 Encrypted password in tpcrcli-auth.properties file
password=2808592b3f4a4331~encrypted
username=tpcadmin
Complete the following steps to set up automatic login authentication:
1. Locate the tpcrcli-auth.properties template file in the
TPC_install_directory\IBM\TPC\cli directory.
2. Create a tpcr-cli directory in your home directory and copy the template to that directory.
3. Edit the file and change the password and user name values to your password and user
ID.
4. Start csmcli.bat or csmcli.sh or run a csmcli command to encrypt the password in the
tpcrcli-auth.properties file. You are automatically logged in to the CLI, as shown in
Example 3-7.
Example 3-7 Starting csmcli.bat procedure
Created new properties file with encrypted password:
C:\Users\tpcadmin\tpcr-cli\tpcrcli-auth.properties
Tivoli Storage Productivity Center for Replication Command Line Interface (CLI)
Copyright 2007, 2012 IBM Corporation
Version: 5.2.0
Build: 20130719-0641
Server: SSCTCP42-T.windows.ssclab-lj-si.net Port: 9560
Authentication file: C:\Users\tpcadmin\tpcr-cli\tpcrcli-auth.properties
csmcli>
3.3.3 Remote CLI installation
Tivoli Storage Productivity Center for Replication supports installation of the CLI on a remote
workstation other than the Tivoli Storage Productivity Center for Replication server.
The following options are available for the remote CLI installation:
򐂰 Copying and extracting the CLI package from Tivoli Storage Productivity Center for
Replication server
򐂰 Copying CLI program folder from Tivoli Storage Productivity Center for Replication server
76 Tivoli Storage Productivity Center for Replication for Open Systems
Complete the following steps to install the CLI by using the CLI package from Tivoli Storage
Productivity Center for Replication server:
1. On the Tivoli Storage Productivity Center for Replication server, browse to the installation
directory where the client images are stored. For example, the Windows operating system
uses the path C:\Program Files\IBM\TPC\client_images, as shown in Figure 3-15.
Figure 3-15 Tivoli Storage Productivity Center for Replication client images
2. Locate the appropriate compressed file for the operating system of your computer where
you want to install the CLI, as shown in the following examples:
TPC_CLIENT_AIX.tar
TPC_CLIENT_LINUX.zip
TPC_CLIENT_WIN.zip
Note: You must use the client images from the Tivoli Storage Productivity Center
installation directory only. The client images in the Tivoli Storage Productivity Center image
or download directory must not be used because they are updated by the installation
program.
Chapter 3. General administration and high availability 77
3. Extract the appropriate compressed file on a remote workstation. In our example, we
extracted the TPC_CLIENT_WIN.zip file on a workstation that is running the Windows
operating system, as shown in Figure 3-16.
Figure 3-16 Tivoli Storage Productivity Center for Replication client folder
4. Edit the repcli.properties file to include the Tivoli Storage Productivity Center for
Replication server name, as shown in Example 3-8. The server name must be the fully
qualified DNS entry or the actual IP address of the Tivoli Storage Productivity Center for
Replication server. The port must not be changed because this is a system setting and is
used to communicate with the Tivoli Storage Productivity Center for Replication server.
Example 3-8 repcli.properties file
server=172.31.83.171
port=9560
5. Edit the tpcrcli-auth.properties file to include your Tivoli Storage Productivity Center
for Replication user name and password, as shown in Example 3-9. This properties file
must be placed into the subdirectory tpcr-cli, which must be created in your home user
directory. Tivoli Storage Productivity Center for Replication access this file only if it is in
that specific subdirectory of your home user directory. In Example 3-9, we use the
Administrator home directory, which is C:\Users\Administrator.
Example 3-9 tpcrcli-auth.properties file
password=myPassword
username=myUsername
Note: In the AIX operating system, you must extract the TPC_CLIENT_AIX.tar file into the
/opt/IBM/TPCClient folder and run the /opt/IBM/TPCClient/gui/TPCD.sh command.
In the Linux operating system, you must extract the TPC_CLIENT_LINUX.zip file into the
/opt/IBM/TPCClient folder and run the /opt/IBM/TPCClient/gui/TPCD.sh command.

Get Tivoli Storage Productivity Center for Replication for Open Systems now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.