04-23-2003 10:27 AM - edited 03-02-2019 06:50 AM
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?
04-23-2003 10:37 AM
You can use the ifIn/OutOctets from RFC1213-MIB and their 64-bit counters as well to poll the specific interface.
04-23-2003 11:12 AM
Hmm. I walked the MIB starting from OID .1.3.6.1.2.1.2.2.1 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...
/Luis
04-23-2003 11:07 AM
Hello,
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.
Cheers!
Jim
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