Server IP : 172.16.15.8 / Your IP : 3.142.200.247 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0555) : /../sbin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/bin/sh IBPATH=${IBPATH:-/usr/sbin} usage() { echo Usage: `basename $0` "[-h] [<topology-file> | -y mkey" \ "-C ca_name -P ca_port -t timeout_ms]" exit 255 } topofile="" ca_info="" mkey="0" while [ "$1" ]; do case $1 in -h | --help) usage ;; -y | --m_key) case $2 in -*) usage ;; esac if [ x$2 = x ] ; then usage fi shift mkey="$1" ;; -P | --Port | -C | --Ca | -t | --timeout) case $2 in -*) usage ;; esac if [ x$2 = x ] ; then usage fi ca_info="$ca_info $1 $2" shift ;; -*) usage ;; *) if [ "$topofile" ]; then usage fi topofile="$1" ;; esac shift done if [ "$topofile" ]; then netcmd="cat $topofile" else netcmd="$IBPATH/ibnetdiscover -y $mkey $ca_info" fi text="`eval $netcmd`" rv=$? echo "$text" | awk ' /^Ca/ {print $1 "\t: 0x" substr($3, 4, 16) " ports " $2 " "\ substr($0, match($0, "#[ \t]*")+RLENGTH)} /^ib/ {print $0; next} /ibpanic:/ {print $0} /ibwarn:/ {print $0} /iberror:/ {print $0} ' exit $rv