著者: 飯坂剛一(いいさかごういち) Revision:1.0

使用方法

引数なしで GatherPS とだけ実行するとヘルプメッセーが表示されます。

[root@dcluster ~]# GatherPS
GatherPS -- Gathering processes informations from remote host.
Version: 1.31 in Python
Copyright (C) 2003-2006 Gouichi Iisaka <iisaka51@hotmail.com>
Usage: GatherPS [options] PATTERN user
  options:
       -f nodefilepath, --nodefile=/path/to/nodefile
                    --ignore=host1[,host2...]
                    --REignore=RE_pattern
                    --addhost=host1[,host2..]
                    --hosts=host1[,host2..]
       -F nodefilename, --nodefile=nodefilename
                         Search nodefilename in $HOME/.ScatterCmd
                         or /usr/local/share/ScatterCmd
       -H host1[,host2...]
       -e method, --execcmd=method Command name for execution
          method =  trsh|ssh   default is trsh
       -R, --regex             use PATTERN as regular expretion
       -s sig, --signal=sig    Specify send signal
       -k, --kill              Generate script to kill the process
       -v, --verbose           Verbosely processed
       -q, --quiet             Do not print anymore
       -V, --version           Print version
       -h, --help              This message
  Examples:
       GatherPS mpp960 iisaka
       GatherPS '*' iisaka
       GatherPS -f ${PBS_NODEFILE} mpp960 iisaka

実行例

scsユーザが実行したMPICHの残痕プロセス(プロセス名mympi.exe)を削除する

cd /home/scs/job1
# GatherPS  -f `pwd`/machines --kill  mymip.exe  scs  > /tmp/junk
# more /tmp/junk
# sh /tmp/junk

パターン指示の解釈とその結果が相違することもありますので、 出力された内容を確認した後に実行するようにしてください。

パターンには正規表現が使えます。

mympi.exe は mymympi.exe にマッチすることに注意してください。