Remotely invoke DS job and wait for job

Hi,

We are running DS 4 SP2 on Linux and have generated our job script from
the console. We need to be able to invoke a DS job from scheduler
(autosys) running on AIX and wait for the DS job to complete so the
return status is passed back to autosys.

We are planning to replace informatica with DS, informatica has a utility
pmcmd which allows remote invocation and will also wait for the job to
complete. Is there a similar utility in DS?

Alternately, if we installed DS on the remote AIX server, would it be
able to remotely start/wait for the job on the Linux server?

Thanks,
Aparna


Aparna Nath (BOB member since 2011-07-18)

As far as I know about AUTOSYS, the AUTOSYS Client Agent has to be installed compulsory on the Job Server machine.


ganeshxp :us: (BOB member since 2008-07-17)

https://wiki.sdn.sap.com/wiki/display/BOBJ/Using+other+schedulers

With this method you get a batch file and whoever does execute it, will kick off the job and once completed, get the return code.

So the question now is, how can autosys run this batch file. One option would be to install an autosys instance on the jobserver machine. The other option is to use ssh to let autosys call this program from remote.

There are a few more alternatives, e.g. install the job launcher on the autosys computer and the such but above will be the most easy version. (There is no installer for just the joblauncher. But there is a Java version of it.)


Werner Daehn :de: (BOB member since 2004-12-17)

Werner , Thank you for the information. How can we get hold of the Java version?
we need to wait for the job to complete, and also to pass the return code back. will this be possible with this java version.

Thanks,
Aparna


Aparna Nath (BOB member since 2011-07-18)

It is kind of a hack using the Java version, but try to find the joblauncher jar file. It uses the same parameters as if the al_rwjoblauncher.exe.
Another method is to schedule something in CMC via the scheduling web page of the management console. Then the java version will be used inside the CMC and you can look how it is used.

But I would really prefer having autosys call the batch file via installing it there or via ssh as explained.


Werner Daehn :de: (BOB member since 2004-12-17)

Is the file ./dataservices/lib/AL_RWJoblauncher.jar? Could you please let us know which class needs to be called?

jar tvf AL_RWJoblauncher.jar |grep -i launch
(nothing found)

jar tvf AL_RWJoblauncher.jar |grep -i job
0 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/
6555 Thu Nov 03 00:37:42 PDT 2011 com/acta/admin/AwAdminJobStatusInterval.class
4781 Thu Nov 03 00:37:42 PDT 2011 com/acta/admin/AwWebServiceEnabledJob.class
4618 Thu Nov 03 00:37:42 PDT 2011 com/acta/admin/AwWebServiceEnabledJobs.class
5814 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/DIJobServer.class
2896 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/DIRepoJobServerList.class
10858 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/DIServerGroup.class
3359 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/DIServerGroupList.class
974 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/JSStatusThread.class
884 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/JobServerLBStatus.class
681 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/LocalPingJobServer.class
675 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/LocalRepoUpdate.class
1762 Thu Nov 03 00:37:42 PDT 2011 com/acta/jobserver/PostJSEvent.class
394 Thu Nov 03 00:37:42 PDT 2011 com/acta/repo/ALJobServerInfo.class
665 Thu Nov 03 00:37:42 PDT 2011 com/acta/rw/ActaJobServerBaseInterface$JSApiFailException.class
25271 Thu Nov 03 00:37:42 PDT 2011 com/acta/rw/ActaJobServerBaseInterface.class
4288 Thu Nov 03 00:37:42 PDT 2011 com/acta/rw/ActaJobServerInterface.class
2216 Thu Nov 03 00:37:42 PDT 2011 com/acta/rw/DIJobServerResource.class
1428 Thu Nov 03 00:37:42 PDT 2011 com/acta/rw/JobIdentity.class
801 Thu Nov 03 00:37:42 PDT 2011 com/acta/rw/JobServerSSLStatus.class
717 Thu Nov 03 00:37:42 PDT 2011 com/acta/rw/JobServerTimeout.class
625 Thu Nov 03 00:37:42 PDT 2011 com/acta/util/AwDSJobServerSection.class


Aparna Nath (BOB member since 2011-07-18)

Oh dear, what have I done… :mrgreen:

I don’t know. All of the class files sound like jobserver ones, not the job launcher. I would need to go to the Management Console, schedule any job with BOE scheduler as target and then figure out the syntax by looking at the scheduled program object in BOE. Can you do that?

http://wiki.sdn.sap.com/wiki/x/WgHyAg


Werner Daehn :de: (BOB member since 2004-12-17)