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"
55 desc=substr(l, match(l, "#[ \t]*")+RLENGTH)
56 pi=match(desc, "port 0.*")
57 pinfo=substr(desc, pi)
58 desc=substr(desc, 1, pi-2)
65 desc=substr(desc, 1, ti-2)
67 desc=substr(desc, 1, ti-2)
69 print $1 "\t: 0x" substr($3, 4, 16) " ports " $2 " "\
72 print $1 "\t: 0x" substr($3, 4, 16) " ports " $2 " "\
73 desc " " type " " pinfo}
74 /^ib/ {print $0; next}