use ifHighSpeed instead of calculation
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 13 Apr 2018 13:14:21 +0000 (15:14 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 13 Apr 2018 13:14:36 +0000 (15:14 +0200)
snmp-port-status.sh

index 43702d7..453b071 100755 (executable)
@@ -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