10-04-2006 12:23 AM
Hi
I'm currently in the process of collecting information for our COS3/COS4 monitoring.
According to Cisco documentation the cbQosPolicyIndex is important to find the informations in the various SNMP-OID tables.
Now the SNMP documentation for cbQosPolicyIndex on the other hand says this information is not accessible.
So catch-22, anyone has a workaround for that?
10-04-2006 07:19 AM
The above object you mention is not accessible, but you can use different objects listed below to get this info.
Here is a step by step procedure for using the CBQOS MIB. Each router would have a different indexing scheme and so it is necessary for you to understand the info given below and "modify" this to meet your rtr's idex values
1) Query your ifDescr to find the interaface index that has the policy
OV_BIN/snmpwalk -c public 14.32.100.75 ifDescr
interfaces.ifTable.ifEntry.ifDescr.1 : DISPLAY STRING- (ascii): FastEthernet0/0
2) Query the cbQosIfIndex to get the QOS mapping to Index
OV_BIN/snmpwalk -c public 14.32.100.75 cbQosIfIndex
cbQosIfIndex.1111 : INTEGER: 1
cbQosIfIndex 1111 is the index for ifDescr 1 FastEthernet 0/0
3) Now query the cbQosClassMapCfg table for the cbQosCMName name object
nms:/opt/OV/bin # $OV_BIN/snmpwalk -c public 14.32.100.75 .1.3.6.1.4.1.9.9.166.1.7.1
cbQosCMName.1025 : DISPLAY STRING- (ascii): class-default
cbQosCMName.1097 : DISPLAY STRING- (ascii): Snmp
cbQosCMDesc.1025 : DISPLAY STRING- (ascii):
cbQosCMDesc.1097 : DISPLAY STRING- (ascii):
cbQosCMInfo.1025 : INTEGER: matchAny
cbQosCMInfo.1097 : INTEGER: matchAll
Once this is know we can query the cbQosConfigIndex to correlate the cbQosCMName value to our
cbQosIfIndex and cbQosConfigIndex
nms:/opt/OV/bin # $OV_BIN/snmpwalk -c public 14.32.100.75 .1.3.6.1.4.1.9.9.166.1.5.1.2
cbQosConfigIndex.1111.1111 : Unsigned32: 1107
cbQosConfigIndex.1111.1113 : Unsigned32: 1097
cbQosConfigIndex.1111.1117 : Unsigned32: 1105
cbQosConfigIndex.1111.1119 : Unsigned32: 1109
cbQosConfigIndex.1111.1121 : Unsigned32: 1025
cbQosConfigIndex.1111.1125 : Unsigned32: 1029
You take the values from cbQosConfigIndex and match them to values found in cbQosCMName for the
given Class-map name and this gives you the cbQosPolicyIndex, cbQosObjectsIndex values you need to
query the cbQosCMStatsTable table with for a given class-map
4) Next I know that the Index for cbQosCMStatsTable is numbers for (cbQosPolicyIndex,
cbQosObjectsIndex) 1111.1121 and 1111.1113.
Here I simply grep for 1113 and 1121 in my snmpwalk of the cbQosCMStatsTable to get the stats
values.
# $OV_BIN/snmpwalk -c public 14.32.100.75 cbQosCMStatsEntry |grep 1113
cbQosCMPrePolicyPktOverflow.1111.1113 : Counter: 0
cbQosCMPrePolicyPkt.1111.1113 : Counter: 0
cbQosCMPrePolicyPkt64.1111.1113 : Counter64: 0
cbQosCMPrePolicyByteOverflow.1111.1113 : Counter: 0
cbQosCMPrePolicyByte.1111.1113 : Counter: 0
cbQosCMPrePolicyByte64.1111.1113 : Counter64: 0
cbQosCMPrePolicyBitRate.1111.1113 : Gauge32: 0
cbQosCMPostPolicyByteOverflow.1111.1113 : Counter: 0
cbQosCMPostPolicyByte.1111.1113 : Counter: 0
cbQosCMPostPolicyByte64.1111.1113 : Counter64: 0
cbQosCMPostPolicyBitRate.1111.1113 : Gauge32: 0
cbQosCMDropPktOverflow.1111.1113 : Counter: 0
cbQosCMDropPkt.1111.1113 : Counter: 0
cbQosCMDropPkt64.1111.1113 : Counter64: 0
cbQosCMDropByteOverflow.1111.1113 : Counter: 0
cbQosCMDropByte.1111.1113 : Counter: 0
cbQosCMDropByte64.1111.1113 : Counter64: 0
cbQosCMDropBitRate.1111.1113 : Gauge32: 0
cbQosCMNoBufDropPktOverflow.1111.1113 : Counter: 0
cbQosCMNoBufDropPkt.1111.1113 : Counter: 0
cbQosCMNoBufDropPkt64.1111.1113 : Counter64: 0
nms:/opt/OV/bin # $OV_BIN/snmpwalk -c public 14.32.100.75 cbQosCMStatsEntry | grep 1121
cbQosCMPrePolicyPktOverflow.1111.1121 : Counter: 0
cbQosCMPrePolicyPkt.1111.1121 : Counter: 72016
cbQosCMPrePolicyPkt64.1111.1121 : Counter64: 72016
cbQosCMPrePolicyByteOverflow.1111.1121 : Counter: 0
cbQosCMPrePolicyByte.1111.1121 : Counter: 15904975
cbQosCMPrePolicyByte64.1111.1121 : Counter64: 15904975
cbQosCMPrePolicyBitRate.1111.1121 : Gauge32: 0
cbQosCMPostPolicyByteOverflow.1111.1121 : Counter: 0
cbQosCMPostPolicyByte.1111.1121 : Counter: 15904975
cbQosCMPostPolicyByte64.1111.1121 : Counter64: 15904975
cbQosCMPostPolicyBitRate.1111.1121 : Gauge32: 0
10-04-2006 07:20 AM
Continued from above:
cbQosCMDropPktOverflow.1111.1121 : Counter: 0
cbQosCMDropPkt.1111.1121 : Counter: 0
cbQosCMDropPkt64.1111.1121 : Counter64: 0
cbQosCMDropByteOverflow.1111.1121 : Counter: 0
cbQosCMDropByte.1111.1121 : Counter: 0
cbQosCMDropByte64.1111.1121 : Counter64: 0
cbQosCMDropBitRate.1111.1121 : Gauge32: 0
cbQosCMNoBufDropPktOverflow.1111.1121 : Counter: 0
cbQosCMNoBufDropPkt.1111.1121 : Counter: 0
cbQosCMNoBufDropPkt64.1111.1121 : Counter64: 0
10-05-2006 03:23 AM
Thanks alot, exactly what I was looking for.
- Joe
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