NOTE: When running on a case sensitive operating system (e.g. UNIX), you must supply values that match the case of the OSF blackboard (typically lowercase).
Usage: pstat_test [-i pid] [-o process] [-s status] [-x start_time] [-p path] [-n node] [-c command] [--count] [--help]
No arguments are required. By itself, the command will print all PSTATs on the current blackboard (all processes running, absent, suspended, etc.). Any PSTAT selection options given will reduce the set of returned matches. Any PSTAT selection options omitted will be replaced with default search characters that will match all PSTATs.
Inputs
-i
% pstat_test -p g2f -s idle
Finds all idle processes running in the g2f path. Prints each entire PSTAT to the terminal.
000001fc-g2f______-idle___________.4151da2b-g2f______-tufnel______________-____ 00000c55-comprs___-idle___________.4151e1c0-g2f______-tufnel______________-____ 00000c8c-listhd___-idle___________.4151e1cd-g2f______-tufnel______________-____
% pstat_test -p g2f -s idle --count
Finds the number of all idle processes running in the g2f path. Prints '3' to the terminal (given above example). To catch this value in a UNIX shell script variable, you could use:
set numIdle = `pstat_test -p g2f -s idle --count`