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
Status of JobMonApp
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 301
- Joined: Thu Jul 14, 2005 10:27 am
- Location: Melbourne, Australia
- Contact:
*** 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 :
HTH,
J.
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'
J.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
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?
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?
Edited by Mike3000
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Job Monitor
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
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