Difference between revisions of "Hdparm script"

From Define Wiki
Jump to navigation Jump to search
(Created page with "#!/bin/bash module load openmpi/gcc/64/1.8.2-mlnx-ofed2 cd /home/test/imb/src threads=20 for ((i=2; i<=36; i++)) do if [ "$i" -gt "9" ] then ...")
 
 
Line 1: Line 1:
 +
<syntaxhighlight>
 +
 
#!/bin/bash
 
#!/bin/bash
  
Line 19: Line 21:
 
         ssh $nodea "hdparm -I /dev/sda"  | tee ${nodea}.out
 
         ssh $nodea "hdparm -I /dev/sda"  | tee ${nodea}.out
 
done
 
done
 +
</syntaxhighlight>

Latest revision as of 10:31, 26 November 2014

#!/bin/bash

module load openmpi/gcc/64/1.8.2-mlnx-ofed2 
cd /home/test/imb/src

threads=20

for ((i=2; i<=36; i++))
do

        if [ "$i" -gt "9" ]
        then
                nodea="compute0${i}"
        else
                nodea="compute00${i}"
        fi
        echo $nodea
        
        ssh $nodea "hdparm -I /dev/sda"  | tee ${nodea}.out
done