dsjob command failed

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
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

dsjob command failed

Post by elavenil »

Hi DS Gurus,

trying to use dsjob command to execute jobs from UNIX prompt.

dsjob -user <uid> -password <pwd> -server <server Name>:<port no> -domain NONE -run <Project> <JobName>.

When the above syntax is used, the job is gettting executed.

But when any one of the below commands used, error occurred as Status code = -1010 DSJE_DOMAINLOGTOFAILED

dsjob -user <uid> -password <pwd> -server <server Name>:<port no> -domain <server fully qualified name:port> -run <Project> <JobName>.

dsjob -user <uid> -password <pwd> -server <server Name>:<port no> -domain <server :port> -run <Project> <JobName>.

dsjob -user <uid> -password <pwd> -server <server Name>:<port no> -domain <server fully qualified name> -run <Project> <JobName>.

dsjob -user <uid> -password <pwd> -server <server Name>:<port no> -domain <server> -run <Project> <JobName>.

Can you enlighten me why DOMAIN = NONE is working fine but the rest of the commands failed?

Thanks in advance for your help.

Regards
Elavenil
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Are you able to login from GUI on that server using the same credentials?


DSJE_DOMAINLOGTOFAILED comes when the command fails to authenticate against the domain. -domain NONE logs to the engine instead of domain hence engine credential will work in that command, however if domain is specified, you should pass the domain credential instead or engine credentials.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

Thanks for your response on this.

Forgot to provide you an additional info on this. All three tiers are running on the same server and do not think an issue in connecting to services tier using the same credentials.

Appreciate it if some light is thrown on this.

Regards
Elavenil
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

elavenil wrote:Forgot to provide you an additional info on this. All three tiers are running on the same server and do not think an issue in connecting to services tier using the same credentials.
That statement is not entirely true. Lets say for GUI you have a user called Elavenil and in credential mapping it is mapped to a user dsuser (engine credential). So with -domain NONE you need to supply dsuser credentials and when you specify the domain the you should use Elavenil credentials.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

Thanks for your response on this.

Sorry, it is not clear to me the point that you are trying to highlight here.

user and password in dsjob syntax, is it Engine credentials or Service credentials? As far as i know there is only user id and password can be passed to dsjob command. How would 2 different user & password be passed to DSJOB command if user credentials are different in Services and Engine tier.

Appreciate your help.

Regards
Elavenil
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

When you specify the domain, It authenticates on that domain in service tier and if NONE is specified then it authenticates on engine. Thats why you need to specify different credentials for it.

Please read chapter one of Programmer's guide in the documentation for detailed explanation.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
sudha03_vpr
Participant
Posts: 34
Joined: Tue Feb 26, 2013 9:36 am
Location: Chicago

Post by sudha03_vpr »

May be the user you connect to Unix may not have privilege to execute dsjob command. You may need to check the user credential.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Check that Engine credentials (set in Web Console for Information Server - Domain Management > Engine Credentials) are set correctly.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply