Home
 
Platform LSF Technical Tip

Do you ever want to be able to quickly run a command or set of commands on all your LSF hosts at once?

Here's a method to use LSF to quickly find out the OS details of all your LSF hosts:

[username@amd06 lsf70]$ which lsgrun
/scratch/clusters/lsf70/7.0/linux2.6-glibc2.3-x86_64/bin/lsgrun
[username@amd06 lsf70]$ lsgrun -R - uname -a
Linux amd01 2.4.19-SMP #1 SMP Mon Mar 31 23:48:08 UTC 2003 x86_64 unknown
Linux amd07 2.6.9-11.ELsmp #1 SMP Fri May 20 18:25:30 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
Linux amdrms0 2.6.9-22.EL #1 Mon Sep 19 17:49:49 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
Linux amd06 2.6.9-11.EL #1 Fri May 20 18:15:25 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
You can substitute "uname -a" with any other command or script.

lsgrun -R - will run the command on every available LSF host in your cluster. ("-R -" means no resource requirement).
lsgrun uses the LSF Base functionality and require the root RES daemon to be running on the LSF host in order to work.