search cancel

Hidden ftp password in Uproc script

book

Article ID: 87195

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

Hidden Variable in Uproc Script can't be used directly in Dollar Universe to hide ftp password in Uproc.


On the other hand, it works fine in Dolar Universe v6, see example below:


uxexechidden uxstr ftp get partner=xxx ORIGIN_FILENAME=xxx ORIGIN_PATHNAME=xxxx LOGON=ftpfnsvr PASSWORD=!HIDDEN_ftpfnsvr_password!

Tue Jan 21 12:36:52 2014: ---------------------------------------------------------
Tue Jan 21 12:36:52 2014: Set values in UXFTP_DATA structure...
Tue Jan 21 12:36:52 2014: Set values in UXFTP_DATA structure ended
Tue Jan 21 12:36:52 2014: Checking UXFTP_DATA and trace all values...
Tue Jan 21 12:36:52 2014: Trace all values from UXFTP_DATA struct...
Tue Jan 21 12:36:52 2014: ftp transfer type=download
Tue Jan 21 12:36:52 2014: No value for logfile
Tue Jan 21 12:36:52 2014: server=10.222.123.32
Tue Jan 21 12:36:52 2014: user=ftpfnsvr
Tue Jan 21 12:36:52 2014: password=!HIDDEN_ftpfnsvr_password!

Cause

Defect

Environment

Patch level detected:Dollar Universe 5.6.0
Product Version: Dollar.Universe 5.6.0 FX25010

Resolution

Workaround for Dollar Universe V5.6:
######################
To hide ftp password in Uproc, please find below a sample script:

@echo on

for /F %%i in ('uxexechidden echo !HIDDEN_var1!') do set var_ftp_password=%%i

uxstr ftp get partner=ftp.orsyp.com ORIGIN_FILENAME=last_update.txt ORIGIN_PATHNAME=public LOGON=1952 PASSWORD=%var_password%

set resexe=%errorlevel%

@echo off
######################

Solution:

Upgrade to a Fix version or superior.

Fix Version(s):
Component: Application.Server
Version: Dollar.Universe 6.1.01