User guide

GCommands and Files
Common Tasks and Commands
IB0054606-02 A G-33
Table G-3. Common Tasks and Commands Summary
Function Command
Check the system state ipath_checkout [options] hostsfile
ipathbug-helper -m hostsfile \
> ipath-info-allhosts
mpirun -m hostsfile -ppn 1 \
-np numhosts -nonmpi ipath_control -i
Also see the file:
/sys/class/infini-
band/ipath*/device/status_str
where * is the unit number. This file provides informa-
tion about the link state, possible cable/switch prob-
lems, and hardware errors.
Verify hosts via an Ethernet
ping
ipath_checkout --run=1 hostsfile
Verify ssh ipath_checkout --run=2 hostsfile
Show uname -a for all hosts mpirun -m hostsfile -ppn 1 \
-np numhosts -nonmpi uname -a
Reboot hosts As a root user:
mpirun -m hostsfile -ppn 1 \
-np numhosts -nonmpi reboot
Run a command on all hosts mpirun -m hostsfile -ppn 1 \
-np numhosts -nonmpi <command>
Examples:
mpirun -m hostsfile -ppn 1 \
-np numhosts -nonmpi hostname
mpirun -m hostsfile -ppn 1 \
-np numhosts -nonmpi date
Copy a file to all hosts Using bash:
$ for i in $( cat hostsfile )
do
scp <source> $i:<destination>
done
Summarize the fabric compo-
nents
ipathbug-helper -m hostsfile \
> ipath-info-allhosts