pstat_test


This utility can be used to search the OPUS process blackboard for PSTATs that match some search criteria. The qualifying PSTATs can either be printed in their entirety, or the total number found can be printed.

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.

Context

Inputs

Outputs

Exit Status

Qualifiers

-i

-o

-s

-x

-p

-n

-c

--count

--help

Examples

% 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`