You can determine if the process is still running by submitting a PROCESS
QUERY HANDLE to the remote machine ("End Date-Time" will only be set if
the process has completed).
There's nothing in STAF to determine if the process is hung or the process
resource consumption. You could use operating system commands (submitted
via a PROCESS START request) to determine the resource consumption.
If you are able to modify the process, to add in calls to STAF, you could
modify it to periodically write its status to the STAF Monitor service, so
you could then remotely query this information, which could give you an
indication if the process appears to be hung, i.e. if the status is not
updating.
Thanks,
David
David Bender
STAF/STAX Development
IBM Software Group, WPLC
11501 Burnet Rd.
Bldg. 903-5B002
Austin, TX 78758-3400
Phone (T/L): 1-512-286-5315 (363-5315)
ITN: 23635315
Email: [email protected]
From:
Rajiv Telang <[email protected]>
To:
STAF <[email protected]>
Date:
01/08/2010 03:04 AM
Subject:
[staf-users] Finding status of a process
Hi,
Is there a way to check the current status of a process via STAF?
I am looking
1. If the proces is running
2. If it is hung and for how long
3. The current resource comsumption (memory + cpu) by that process
I want to monitor a process running on a remote system for above data. I
know how a process can be started or killed but not sure if above 3 points
are possible to achieve via STAF. Any help is greatly appreciated.
Thanks,
Rajiv
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and
easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users