3 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
6 echo Usage: `basename $0` "[-h] [<topology-file> | -C ca_name" \
7 "-P ca_port -t(imeout) timeout_ms]"
19 -P | -C | -t | -timeout)
28 ca_info="$ca_info $1 $2"
35 if [ "$topofile" ]; then
44 if [ "$topofile" ]; then
45 netcmd="cat $topofile"
47 netcmd="$IBPATH/ibnetdiscover $ca_info"
53 /^Rt/ {print $1 "\t: 0x" substr($3, 4, 16) " ports " $2 " "\
54 substr($0, match($0, "#[ \t]*")+RLENGTH)}
55 /^ib/ {print $0; next}