using dsjob command with credential file

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

Moderators: chulett, rschirm, roy

Post Reply
h4harry1
Participant
Posts: 16
Joined: Sat Mar 19, 2011 8:01 am

using dsjob command with credential file

Post by h4harry1 »

Hi All,
Environment -- Windows Server, Datastage 8.01
I am trying to use dsjob command using text file which contains the username, password and server details.
But its not working and produces the error "invalid/unknown primary command switch" , with status code = -9999 DSJE_DSJOB_ERROR.
Command Syntax-- dsjob -authfile c:\....\credentials.txt -ljobs MY_PROJECT
contents of credentials.txt
user=dsuser
password=dsuser
domain=mac100:9080
server=mac100

If i give dsjob command as follow, without credential file it works fine.

dsjob -domain ........ -user ...... -password ......... -server ........-ljobs MY_PROJECT

But I don't want to specify the password,username details on the command prompt.

Thanks in advance...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I thought it was simply -file rather than -authfile. Or has that changed in 8? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
h4harry1
Participant
Posts: 16
Joined: Sat Mar 19, 2011 8:01 am

Post by h4harry1 »

Thanks for your reply. I tried file but it's still the same issue . I even used ; to terminate every line in credential file. Please advice .
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try putting -domain on the command line, even though it's in the credentials file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
h4harry1
Participant
Posts: 16
Joined: Sat Mar 19, 2011 8:01 am

Post by h4harry1 »

Hi, Thanks for all the replies...

I solved this as follow:

credentials file contents :-

mac100:9080,MAC100,dsuser,dspwd

i.e, domain,server,user,password

and used the following command

dsjob -file credentials.txt mac100:9080 MAC100 -ljobs MY_PROJECT

Thanks again for your help
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

In the 8.7 docs it sounds like -authfile does the same thing as the -file option, except that the -authfile option can also support a fully encrypted file.

Run dsjob by itself to see the expected syntax.
Choose a job you love, and you will never have to work a day in your life. - Confucius
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Good to know. 8)
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply