pstat_drive


This utility allows you to control existing OPUS processes from the command line in the same way that you would be able to from the PMG, by specifiying the process and sending the appropriate command (e.g. halt). Changes to the PSTAT blackboard made on the command line will of course also be represented in a running PMG.

Parameters specified on the command line serve to uniquely identify the PSTAT for the single OPUS process which you wish to control. Enough information should be provided so that a single PSTAT may be uniquely identified, otherwise the command will fail. NOTE: you must supply values which match the case of the PSTAT blackboard.

Usage: pstat_drive [-i pid] [-o process] [-s status] [-x start_time]
                   [-p path] [-n node] <susp|resu|init|halt> [--help]

The only required argument is the command itself (e.g. susp|resu|init|halt). All other arguments serve to uniquely indentify the PSTAT. 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

command

--help

Examples

Assuming there is one process running in OPUS, under the "quick" path, and the output of pstat_test is:

000064cb-pypoller_-idle___________.418be2f9-quick____-tufnel______________-____
then the command:

% pstat_drive -p quick -o pypoller susp

will suspend the "pypoller" process running in the "quick" path. Note that since we have only one process running, the -p and -o arguments were actually unnecessary to uniquely specify the correct PSTAT.

To resume the process, we use:

% pstat_drive -p quick -o pypoller resu

and, finally, to terminate the process, we use:

% pstat_drive -p quick -o pypoller halt