projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeee8e2
)
use ifHighSpeed instead of calculation
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 13 Apr 2018 13:14:21 +0000
(15:14 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 13 Apr 2018 13:14:36 +0000
(15:14 +0200)
snmp-port-status.sh
patch
|
blob
|
history
diff --git
a/snmp-port-status.sh
b/snmp-port-status.sh
index
43702d7
..
453b071
100755
(executable)
--- 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