[torqueusers] Torque module for pdsh ?
Steve Young
chemadm at hamilton.edu
Thu May 14 14:23:19 MDT 2009
Hi,
Not related to pdsh but since I already have passwordless ssh I just
use that to check the nodes for things:
[root at host ~]# sshem-xserv uptime
xserv0001: 16:14 up 13 mins, 0 users, load averages: 0.04 0.02 0.00
xserv0002: 16:14 up 13 mins, 0 users, load averages: 0.01 0.03 0.00
xserv0003: 16:14 up 5 mins, 0 users, load averages: 0.03 0.12 0.07
xserv0004: 16:14 up 13 mins, 0 users, load averages: 0.12 0.04 0.01
xserv0005: 16:14 up 13 mins, 0 users, load averages: 0.02 0.04 0.00
xserv0006: 16:14 up 13 mins, 0 users, load averages: 0.13 0.04 0.01
xserv0007: 16:14 up 13 mins, 0 users, load averages: 0.09 0.08 0.05
[root at host ~]# cat /usr/local/global/bin/sshem-xserv
#!/bin/csh
foreach host ( `cat /usr/local/global/etc/clusters-xserv` )
echo -n $host": "
ssh $host $*
end
[root at host ~]#
Similarly, I also have a corresponding scpem script to copy config
files from the head node out to the client nodes.
[root at host ~]# cat /usr/local/global/bin/scpem-xserv
#!/bin/csh
foreach host ( `cat /usr/local/global/etc/clusters-xserv` )
echo -n $host": "
scp $1 root\@$host\:$1
end
[root at host ~]#
With this setup I can have different sshem/scpem scripts for each of
the different architecture types of machines we have. Hope this helps,
-Steve
On May 14, 2009, at 3:58 PM, Ole Holm Nielsen wrote:
> Si Hammond wrote:
>> Have you looked at the pbsdsh command?
>
> Yes, pbsdsh could be used within a batch job. I'm interested
> in cluster management tools where you can execute a command
> from the central administration server, for example to get
> the process status on the nodes that run a particular job.
>
> I currently use a simple script that loops over the job's nodes,
> see ftp://ftp.fysik.dtu.dk/pub/Torque/sshjob but I would like
> to improve this by using pdsh.
>
> Thanks,
> Ole
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
More information about the torqueusers
mailing list