Password info encrypted/clear from Log

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Password info encrypted/clear from Log

Post by nivas »

Hi

In the datastage job I did change the param Type to Encrypted. But in the log we are able to see the actual password. How do I encrypt/clear the password info from the Log.

thanks
Nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That doesn't make much sense. Can you post the log where you see the actual password? So perhaps we have some clue what is logging it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

[runSSISPackageBOALoad2..JobControl (ExecDOS): Executed command: C:\psexec\psexec -u hcf\spari -p abc123 \\HCF15 -i dtexec /SQL \ZeroCouponLoad\BOALoad /SERVER HCF15 /CHECKPOINTING OFF /REPORTING EW
*** Output from command was: ***

The above is the log. I want to encrypt or clear the log .After -p, abc123 is the password. I want to encrypt/clear from log. This password I am passing to the job as encrypted type.

thanks
nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok, the password has to be decrypted before your O/S command can use it. There should be a 'Silent' version of ExecDODS you can switch to that doesn't log that information. If it doesn't exist, it should be easy enough to write one.
-craig

"You can never have too many knives" -- Logan Nine Fingers
umamahes
Premium Member
Premium Member
Posts: 110
Joined: Tue Jul 04, 2006 9:08 pm

Post by umamahes »

You are executing os command and passing password through command line arguments.Even if you encrypt in data stage it will be displayed in the log.
HI
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

THanks umamahesh for your comment

Chulnet,
Thanks for your help. But unfortunately ExecDODS is not available here. Is there any command to clear the log after the end of the job. Or I may change the strategy.

thanks
Nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry, typo. ExecDOS which does exist, btw. How are you executing this now - Sequence job? Custom code before/after job?
-craig

"You can never have too many knives" -- Logan Nine Fingers
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

Its a regular datatage job. In the Job control Tab, I put custom code.

thanks
Nivas
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

Its a regular datatage job. In the Job control Tab, I put custom code.

thanks
Nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Mind posting that code? Did you look to see if there is an ExecDOSSilent available? For UNIX there is an ExecSHSilent, hence the question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

Not for us
thanks
Nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then create one. Copy the existing routine and change it so it doesn't log the information you don't want to see in the log.
-craig

"You can never have too many knives" -- Logan Nine Fingers
umamahes
Premium Member
Premium Member
Posts: 110
Joined: Tue Jul 04, 2006 9:08 pm

Post by umamahes »

Can you pelase post your code.
HI
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

chulett wrote:change it so it doesn't log the information you don't want to see in the log. ...
I donot know how to change the code to make to not to log the inform.

thanks
Nivas
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

chulett wrote:change it so it doesn't log the information you don't want to see in the log. ...
I donot know how to change the code to make, not to log the inform.

thanks
Nivas
Post Reply