[torqueusers] tm aware ssh

Brock Palen brockp at umich.edu
Fri Dec 14 08:02:58 MST 2012


Thanks Gareth,


Brock Palen
www.umich.edu/~brockp
CAEN Advanced Computing
brockp at umich.edu
(734)936-1985



On Dec 13, 2012, at 6:18 PM, <Gareth.Williams at csiro.au> <Gareth.Williams at csiro.au> wrote:

>> I have a few applications that spawn using ssh and don't support tm,
>> 
>> There was once on the list a 'pbsssh'  that wrapped pbsdsh to act like
>> ssh,
>> 
>> It looks like that script no longer works and I am scratching my head
>> as to getting it working again  (my bash fu is weak).
>> 
>> Does anyone already have a way they do this?
>> 
>> The hope is to get correct process reporting, and cleanup for
>> applications that don't support TM but spawn with ssh/rsh.
>> 
>> 
>> Thanks!
>> 
>> Brock Palen
> 
> Hi Brock,
> 
> We have this (below) in place.  You might need to swallow more ssh options if they are present - and there is no checking that "node" actually gets set to a cluster node name.
> Specifying a user would break this... but you would not expect that in a cluster inside a batch job, right?
> 
> Gareth
> 
> 
> wil240 at burnet-login:~> cat /apps/ascutils/bin/pbsssh
> #!/bin/bash
> # $Id: pbsssh 2236 2012-05-02 03:16:17Z wil240 $
> # $HeadURL: svn+ssh://stream/cs/home/svn/sysadmin/ascutils/common/pbsssh $
> 
> usage="usage: $0 <node name> <command>"
> 
> #swallow -x -n and -q (for intel mpi)
> while getopts "xqn" opt
> do
> :
> done
> shift $((OPTIND-1))
> 
> if [ $# -lt 2 ]
> then
>        echo $usage
>        exit
> fi
> 
> node=$1
> 
> shift
> 
> exec pbsdsh -o -h $node "$@"
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers



More information about the torqueusers mailing list