Using encryption for UC4 operating system agents
search cancel

Using encryption for UC4 operating system agents

book

Article ID: 88774

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

Using encryption for UC4 operating system agents

Environment

Release:
Component: AAUTEN

Resolution

Using encryption for Automic operating system agents

Sample:

You want to encrypt the password in the following line:
net use x: \\server\share /user:domain\username password
How can we encrypt this password?

Solution

 
For Unix:
      pass=`&UC_JOBMD CMD="echo &PASS#"`
      sqlplus username/${pass}@databasename @select2.sql
    
For Windows (you have to use Powershell):
      &UC_JOBMD CMD=echo &PASS# | tee -variable pass
      net use x: \\server\share /user:domain\username ${pass}