You can set up the command-line interface to automatically
log you in without specifying your user name or password each time
you issue a csmcli command or enter the csmcli shell.
Use the csmcli-auth.properties file to create
a persistent copy of the user name and encrypted password that is
used for automatic authentication and authorization.
Procedure
Complete these steps to set up automatic login authentication:
- Locate the csmcli-auth.properties template file where the
csmcli.bat or csmcli.sh file is located.
The
template is in the following directories, depending on the operating system.
Operating system |
Default directory |
z/OS® |
path_prefix/opt/IBM/CSM/CLI |
Windows |
c:\Program Files\IBM\CSM\CLI |
Linux or AIX |
path_prefix/CLI |
-
Copy the authentication properties template file into the csm-cli
subdirectory of the home directory defined by the operating system. For example,
<HOME>/csm-cli/csmcli-auth.properties.
Note: You can place the file in the home directory to support different operating
system users being able to log in from the same server.
- Add CSM user login credentials in the properties file and grant file read
permission for operating system users that should use the defined CSM credentials for automated log
in. Passwords will be encrypted by the csmcli-auth.properties file when it is
used the first time.
- The operating system user can now run the script (or Job) to issue a
csmcli command or enter the csmcli shell without
providing further login credentials.
What to do next
Optionally, for CSM CLI on z/OS, the -saf parameter can be
used as your automatic login method. For more information on the setup and use of the
-saf parameter, see
csmcli.