Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.


<pre>
//jobname   JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//* 
//STEP1   EXEC UENCRYPT
//STEPLIB  DD DISP=SHR,DSN=SBI.UNV.SUNVLOAD
//UNVIN    DD *
-userid username
-pwd    password
//UNVOUT   DD DISP=SHR,DSN=hlq.PROD.DATA(USR001)
//UNVNLS   DD DISP=SHR,DSN=SBI.UNV.SUNVNLS
//SYSPRINT DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//CEEDUMP  DD SYSOUT=*
//SYSIN    DD DUMMY
</pre>


Panel
Html bobswift

UNVIN Options

Anchor
1134556
1134556
The UNVIN options used in this example are:

...

:

...

...


Option

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 324pt;

...

Description

...

...

...

...

...

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

...

...

...

...

...

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.


<pre>
//jobname  JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//* 
//         JCLLIB ORDER=SBI.UNV.SUNVSAMP
//* 
//STEP1  EXEC UCMDPRC 
//USER    DD DISP=SHR,DSN=hlq.PROD.DATA(USR001)
//SYSIN   DD *
-cmd   'ls -la'
-host  hostname 
-encryptedfile USER
/*
</pre>


Panel


Html bobswift


Note
titleNote

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.

...

Anchor
1134556
1134556
The SYSIN options used in this example are:

...

cellspacing0
styletext-align: left; width: 100%;
classTable_with_Header

...

:

...

Option

...

...

Description

...

styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

...

...

...

Command to be executed on the remote system.

...

...

...

...

...

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

...

...

...

...

styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

...

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

...