Use an Encrypted Command File for User ID and Password on zOS

Use an Encrypted Command File for User ID and Password on z/OS

This example demonstrates using an encrypted command file to hold the user ID and password options used by UCMD Manager for z/OS. The encrypted command file is created with the Universal Agent Universal Encrypt (UENCRYPT) utility.

Create an Encrypted Command File

The following figure demonstrates how to create a UENCRYPTed command file. The options to be encrypted are specified on the UNVIN ddname (in this example, -userid and -pwd). The encrypted command file is written to ddname UNVOUT, which allocates PDS member USR001.


UNVIN Options

The UNVIN options used in this example are:

Option

Description

-userid

User ID or account with which to execute the remote command.

-pwd

Password associated with -userid.

Use an Encrypted Command File

The following figure demonstrates how to use an encrypted command file to execute a remote command using UCMD Manager. The example is executing a UNIX ls command on a remote system. The user ID and password to be used to execute the command is specified with the -encryptedfile option. The -encryptedfile option specifies a ddname from which to read the encrypted command file created in the first figure.



Note

An encrypted command file protects the privacy of the data contained within it. It does not protect it from being used by anyone with read permission to the encrypted command file data set.

To ensure the encrypted command file is used only by authorized users, proper security access to the data set must be defined in your security system, such as IBM's RACF.

SYSIN Options

The SYSIN options used in this example are:

Option

Description

-cmd

Command to be executed on the remote system.

-host

Host name or IP address of the remote system on which to execute the script.

-encryptedfile

ddname from which to read an encrypted command file created with the Universal Agent Universal Encrypt (UENCRYPT) utility.

Components

Universal Command Manager for z/OS