Creating Encrypted Command File - UNIX

Creating Encrypted Command File for UNIX

Command File

In this example, a Universal Command command file named cmdfile.txt contains the following data:

-userid T02JAH1 -pwd thames

Command File Options

The command file 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.

Note

If you are creating an encrypted file for use with the Universal Controller CLI (Command Line Interface), you must use the CLI command line switches to specify the user ID and password:


Encryption Command

The following command encrypts the command file using AES encryption with an encryption key MYKEY123.

uencrypt -key MYKEY123 -aes yes <cmdfile.txt> encfile.txt

Note

The name of the file containing the text to be encrypted (in this case, cmdfile.txt} must be enclosed in less than (<) and greater then (>) characters.

The resulting encrypted command file, in this case, is encfile.txt.

Command Line Options

The command line options used in this example are:

Option

Description

-key

Encryption key used by the encryption algorithm.

-aes

Specification for whether or not AES encryption is used.

Contents of Encrypted File

The following figure illustrates the contents of encfile.txt.

# Universal Encrypt
#   Date . . . . . : Thu Nov  3 07:29:03 2011
#   User . . . . . : T02JAH1
#   Host . . . . . : hosta.acme.com
#   Program  . . . : uencrypt 3.2.0 Level 5 Release Build 130
#   Encryption . . : AES 256-bit

1F7DAF62583C813EA876CA168FF626C348F7BF171477D380D9A2FFFED33C539B71B4206EA502
1FD92CDFDD931C3B88B9CD711A4693EFE6B49FAE9431E9C946F7F35C9B4C31335BFB3F97F068
6EFF37068245A6B58CBFE2ADE32997A132C4114AC52CD615B2E7E8672ED0BF9867CA13B1

This encrypted command file now can be used by any Universal Agent command, on any operating system, by specifying the encryption key MYKEY123.

Components

Universal Command Manager for UNIX

Universal Encrypt