pscluster.pl


Contents


Overview

The pscluster.pl command allows the OPUS pipeline user to check the process status of OPUS processes, including OPUS servers, for multiple nodes at the same time. The processes can be owned by the current user or by a different user. In addition, this command will allow the current user to terminate his/her own processes on these nodes.

The script will utilize the user's setting of OPUS_REMOTE_SHELL and OPUS_HOME_DIR from the opus_login.csh file.

The script was designed to work on Tru64 (no longer supported), Solaris, and Linux machines.

This script is complicated and usage is often simplified by calling it from a wrap-around script. For instance, HST OPUS users may use psopus.pl and Sample Pipeline users may call kill_oservers.csh.

Any processes killed by this tool will be terminated with the UNIX kill command, which is different from how a process is halted via the PMG. Thus any cleanup steps (e.g. during an internal poller's HALT command handler) will not be performed. For this reason, users should only use the -kill option when unable to take processes down with the PMG.

So when it comes right down to it, when the user specifies -kill, he/she should do so with care when using pscluster.pl.

Note:
If the OPUS servers are killed before OPUS processes are finished coming down, OPUS servers may restart automatically. It is suggested that the user always verify the state of the servers with another pscluster.pl -t a before assuming all processes are terminated.

Setup:

Usage:

For the most current help and examples, use "pscluster.pl -help".

Context:

For the most current help and examples, use "pscluster.pl" or "pscluster.pl -help".

Inputs

Outputs

Examples:

 
%pscluster.pl -l 80 -t a

--- tufnel (local) -------------------------------------------------------------
  PID %CPU %MEM  VSZ    STIME COMMAND
 3546  0.0  0.1 23344 21:12:52 opus_bb_server -t OSF -i /store/tufnel/dsb/lisa/o
 3390  0.1  0.1 23280 21:11:52 osfdelete -p /home/sherbert/defs/154b/fgs_leaf.pa
 3543  0.0  0.1 23344 21:12:49 opus_bb_server -t OSF -i /store/tufnel/dsb/lisa/o
 3435  0.0  0.1 23408 21:12:06 xpoll -p /home/sherbert/defs/154b/ing_les.path -r
 3380  0.0  0.1 23408 21:11:50 xpoll -p /home/sherbert/defs/154b/cdb_styx.path -
 3422  0.1  0.1 30072 21:11:59 update_db_tool -p /home/sherbert/defs/154b/fus_io
 3566  0.0  0.1 23344 21:12:53 opus_bb_server -t OSF -i /store/tufnel/dsb/lisa/o
 3545  0.0  0.1 23344 21:12:51 opus_bb_server -t OSF -i /store/tufnel/dsb/lisa/o
 3523  0.0  0.1 23440 21:12:46 opus_bb_server -t PSTAT -i /store/tufnel/dsb/lisa
 3525  0.0  0.1 23344 21:12:49 opus_bb_server -t OSF -i /store/tufnel/dsb/lisa/o
 3437  0.1  0.1 23280 21:12:12 osfdelete -p /home/sherbert/defs/154b/sci_fur.pat
-------------------------------------------------------------------------------


%pscluster.pl -kill
   
--- drummer (local) -------------------------------------------------------------
  PID %CPU %MEM  VSZ    STIME COMMAND
No PIDs to kill.
--------------------------------------------------------------------------------
   
   
--- drummer (local) -------------------------------------------------------------
  PID %CPU %MEM  VSZ    STIME COMMAND
19938  0.0  0.1 23216 17:18:42 opus_env_server -ORBStdProfileComponents 0 &
20106  0.0  0.1 23344 17:20:03 opus_bb_server -t OSF -i /drummer/data/user/osfs/path01/ -ORBStdProfileCompone
20064  0.0  0.1 23344 17:19:56 opus_bb_server -t OSF -i /drummer/data/user/osfs/path02/ -ORBStdProfileCompon
20269  0.0  0.1 23344 17:20:23 opus_bb_server -t OSF -i /drummer/data/user/osfs/path03/ -ORBStdProfileCom
19939  0.0  0.1 23608 17:18:44 opus_bb_server -t PSTAT -i /drummer/data/user/opus_home/ -ORBStdProfileComp
20187  0.0  0.1 23344 17:20:11 opus_bb_server -t OSF -i /drummer/data/user/osfs/path04/ -ORBStdProfileCompon
19940  0.0  0.1 23072 17:18:49 opus_event_service -i /drummer/data/user/opus_home/event/ -ORBStdProfileCom
20226  0.0  0.1 23344 17:20:16 opus_bb_server -t OSF -i /drummer/data/user/osfs/path05/ -ORBStdProfileComp
20105  0.0  0.1 23392 17:20:01 opus_bb_server -t FILE -i /Files_bb/ -ORBStdProfileComponents 0 &
   
*** killing 19938 20106 20064 20269 19939 20187 19940 20226 20105
Sending to drummer: /bin/kill 19938 20106 20064 20269 19939 20187 19940 20226 20105
--------------------------------------------------------------------------------