Page 1 of 1

Status of JobMonApp

Posted: Thu Mar 23, 2006 11:32 pm
by Pavan78
Hi,

How will I know whether JObMonApp is running or not.

i want to check Programmatically whether JObMonAPp is Running, if it is not running then I need ABORT my BATCH Job.

We are using JobMonApP for our Auditing purpose and its very important for us to check whetehr it is running or not before we start our Batch process.

Please let me know.

Regards,
- Pavan

Posted: Mon Jan 22, 2007 12:12 pm
by jhmckeever
*** This reply comes approx. 10 months after the original post ***

For anyone interested in this, you might want to search for the registered JobMonApp process, recorded in $APT_ORCHHOME/java/.jobmonpid :

Code: Select all

ps -ef | grep `cat $APT_ORCHHOME/java/.jobmonpid` | grep -v 'grep'
HTH,
J.

Posted: Mon Jan 22, 2007 7:49 pm
by kumar_s
Good to see the answers for the posts.
If Pavan, looks into this, hope the topic will be closed.

Posted: Tue May 22, 2007 2:54 pm
by Mike3000
I tried to use this answer to get going on:
DS 7.5.1
Parallel Job
Unix Solaris

I need to find out the status of my JobMonApp.

If i do :
ps -ef | grep `cat $APT_ORCHHOME/java/.jobmonpid` | grep -v 'grep'

I'm getting the error:
"cat: cannot open /java/.jobmonpid"
I know it happens, b. $APT_ORCHHOME not defined.

Could you tell me please, how can i define this $APT_ORCHHOME? and
do i really need to define this var?

Posted: Tue May 22, 2007 4:06 pm
by ray.wurlod
APT_ORCHHOME is necessary for admin utilities such as orchadmin or orchdbutil. Some people also set PXHOME. Both (where used) point to the PXEngine directory - which is a sibling of the DataStage engine directory. Therefore

Code: Select all

APT_ORCHHOME=${DSHOME}/../PXEngine

Posted: Wed May 23, 2007 7:58 am
by Mike3000
Thank you Ray!

Job Monitor

Posted: Wed May 23, 2007 8:43 am
by ralleo
Or better still try

ps -aef | grep APT_ORCHHOME=${DSHOME}/../PXEnginejava/jre/bin/PA_RISC2

You should see this running.



----------------------------------------------------------------------------------
Throw a lucky man in the sea and he would come up with a fish in his mouth