cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3830
Views
0
Helpful
1
Replies

How to get OIDs of indexes for class-map ?

jouk
Level 1
Level 1

I have policy-map configured on cisco router with some class-maps inside. I need to draw a graph traffic passing through these classes. To make a graphs I use Cacti  which use SNMP query to draw the graphs (object name cbQosObjectsIndex).

How to get OIDs of class-map indexes ?

I tried to do this by following query:

#snmpwalk -c community_string -v 2c 192.168.0.252 1.3.6.1.4.1.9.9.166.1.5.1.1.1

but the answer was:

iso.3.6.1.4.1.9.9.166.1.5.1.1.1 = No Such Object available on this agent at this OID

The information i need is contained at the OID 1.3.6.1.4.1.9.9.166.1.15.1.1.7:

# snmpwalk -c community_string -v 2c 192.168.0.252 1.3.6.1.4.1.9.9.166.1.15.1.1.7

iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.1277 = Gauge32: 0

iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13363 = Gauge32: 0

iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13383 = Gauge32: 0

iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13435 = Gauge32: 734000

iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13481 = Gauge32: 233000

1 Reply 1

yjdabear
VIP Alumni
VIP Alumni

Because 192.168.0.252 1.3.6.1.4.1.9.9.166.1.5.1.1.1 is marked "non-accessible" according to http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=cbQosObjectsIndex

You'll need to obtain the indices as explained in this blog post:

http://pierky.wordpress.com/2009/04/09/cisco-class-based-qos-snmp-mib-and-statistics-monitor-for-nms/

Joe wrote a very illustrative post on the subject of snmptables: https://supportforums.cisco.com/message/3051004#3051004

And if your IOS supports it, you would want to configure the following to keep the indices from changing after every reboot or OIR:

"snmp mib persist cbqos"