Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Traffic counters / SNMP

I need to capture traffic counters via SNMP.

Doing this on the interface traffic is rather trivial, and the OID-s

are easy to find.

What I need is to monitor the byte traffic on a specific IP address.

I have setup traffic shaping (traffic-shape group) with an extended

access list, and looking at "show traffic-shape sta" gives me

actually the byte traffic that has been under traffic-shaping for a

given IP address. But I need this data via SNMP, not just from the

CLI. Ideas?


Re: Traffic counters / SNMP

You can use the ifIn/OutOctets from RFC1213-MIB and their 64-bit counters as well to poll the specific interface.

New Member

Re: Traffic counters / SNMP

Hmm. I walked the MIB starting from OID . and YES i see the interface counters, but there are nowhere the same counters as I would see from the CLI using "show traffic-shape statistics".

Thanks for the fast reply under any circumstances...


New Member

Re: Traffic counters / SNMP


It might be fairly complex and depends on the tool you are using but you can look at the RMON2 mib (rfc2021)...You will need to turn RMON on or have probes...Look at the following table from the mib:

NlHostEntry ::= SEQUENCE {

nlHostTimeMark TimeFilter,

nlHostAddress OCTET STRING,

nlHostInPkts ZeroBasedCounter32,

nlHostOutPkts ZeroBasedCounter32,

nlHostInOctets ZeroBasedCounter32,

nlHostOutOctets ZeroBasedCounter32,

nlHostOutMacNonUnicastPkts ZeroBasedCounter32,

nlHostCreateTime LastCreateTime


Remember to do the conversion from octets to bytes..

BTW, I use RMON probes with Concord's eHealth and NetScouts' RTM.



CreatePlease login to create content