autosys_secure cmd to gen encrypted psw

book

Article ID: 220781

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

Our legacy peoplesoft folks want to automate their DB password change process in the PSOFT*.cfg files on their FULL Client hosts. They want to know how can they run the autosys_secure cmd (options 6 then 2) via  command line options (not interactively), to get the encrypted password via batch, similar to what's available to set/change/delete a user's password -

EG: "autosys_secure -c -u user -o 'oldpsw' -p 'newpsw"

Environment

Release : 12.0

Component :

Resolution

1. Create a file that contains the following lines:

6

2

password

password

0

Note: Replace the above "password" with the actual password to be encrypted.

2. Run autosys_secure as follows:

autosys_secure < path/passwdfile | grep Password | cut -f3- -d' '

For example, if I want to encrypt password "test", I create a file named testpass.txt that contains the following:

6

2

test

test

0

Then run the following command:

autosys_secure < /tmp/testpass.txt | grep Password | cut -f3- -d' '
612e43324338456d462666354728692e