Using encryption for UC4 operating system agents

Document ID : KB000088774
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Affects Release version(s): null

Using encryption for UC4 operating system agents
Resolution:
Using encryption for Automic operating system agents

Sample:

You want to encrypt the passwort in 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}