From: Dobrica Pavlinusic Date: Fri, 13 Apr 2018 13:14:21 +0000 (+0200) Subject: use ifHighSpeed instead of calculation X-Git-Url: http://git.rot13.org/?p=dell-switch;a=commitdiff_plain;h=2fa3053b9e1500e8d6ea7d7640351ee70de6d6da use ifHighSpeed instead of calculation --- diff --git a/snmp-port-status.sh b/snmp-port-status.sh index 43702d7..453b071 100755 --- a/snmp-port-status.sh +++ b/snmp-port-status.sh @@ -38,7 +38,8 @@ for i in `seq 1 $numports`; do fi #descr=`$snmp IF-MIB::ifDescr.$i` - speed=`$snmp IF-MIB::ifSpeed.$i | sed 's/000000//'` + #speed=`$snmp IF-MIB::ifSpeed.$i | sed 's/000000//'` + speed=`$snmp IF-MIB::ifHighSpeed.$i` extra="" for add in "$@"; do