03-01-2012 06:33 AM
Hi.
In a Catalyst switch, under the command: show interface fast 1/0/1 (for example) there is a parameter "5 minute input rate YY bits/sec".
Is it possible to send this value to a SNMP server or to a SYSLOG server?
Danny.
03-05-2012 03:13 AM
here are 2 good basic documents on this topic:
"How To Calculate Bandwidth Utilization Using SNMP"
SNMP Counters: Frequently Asked Questions
Basicly, what you have to do is, to poll the ifHCInOctets and ifHCOutOctets (from the IF-MIB (ifXTable) - e.g ifHCInOctets = .1.3.6.1.2.1.31.1.1.1.6.)
and do some calculation to get bps. This thread gives a good example.
there are 2 Mib objects, which gives directly what you want, but they are deprecated and have 32-bit counters, so they are not of practical use for highspeed (Gig) interfaces:
locIfInBitsSec 1.3.6.1.4.1.9.2.2.1.1.6
locIfOutBitsSec 1.3.6.1.4.1.9.2.2.1.1.8
Typically you will poll these values with snmp instead of sending them; (for 64-bi counters (ifHCInOctets) you 'll have to use snmpv2c or snmpv3)
03-05-2012 03:41 AM
Hi Martin.
Thank U for your help.
Danny.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide