3 # This simple script will collect outputs of ibroute for all switches
4 # on the subnet and drop it on stdout. It can be used for MFTs dump
10 echo Usage: `basename $0` "[-h] [-D] [-C ca_name]" \
11 "[-P ca_port] [-t(imeout) timeout_ms]"
17 for sw_lid in `ibswitches $ca_info \
18 | sed -ne 's/^.* lid \([0-9a-f]*\) .*$/\1/p'` ; do
19 ibroute $ca_info -M $sw_lid
25 for sw_dr in `ibnetdiscover $ca_info -v \
26 | sed -ne '/^DR path .* switch /s/^DR path \[\(.*\)\].*$/\1/p' \
27 | sed -e 's/\]\[/,/g' \
29 ibroute $ca_info -M -D ${sw_dr}
44 -P | -C | -t | -timeout)
53 ca_info="$ca_info $1 $2"
66 if [ "$use_d" = "-D" ] ; then