cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1557
Views
0
Helpful
2
Replies

Class-based QoS MIB and IOS XR

Hello!
I want to monitor traffic that matches in class-maps via SNMP (CISCO-CLASS-BASED-QOS-MIB) on IOS XR, but i can't understand some counters.

class-map and policy-map config:

class-map match-all Default0.0
 match dscp default 
 end-class-map
!
class-map match-all Default0.1
 match dscp 4 
 end-class-map
!
class-map match-all Basic1.0
 match dscp cs1 
 end-class-map

class-map match-all Basic1.1
 match dscp af12 
 end-class-map
!
class-map match-all Basic1.1-InternetVideo
 match dscp 13 
 end-class-map

class-map match-all Interactive2.0
 match dscp cs2 
 end-class-map

class-map match-all Interactive2.1
 match dscp af22 
 end-class-map

policy-map QuotaBreach
 class Default0.1
  set qos-group 0
 ! 
 class Default0.0
  set qos-group 0
 ! 
 class Interactive2.1
  set qos-group 0
 ! 
 class Interactive2.0
  set qos-group 0
 ! 
 class Basic1.1
  set qos-group 0
 ! 
 class Basic1.0
  set qos-group 0
 ! 
 class Basic1.1-InternetVideo
  set qos-group 0
 ! 
 class class-default
 ! 
 end-policy-map

set qos-group 0 just a "bogus" action. I need to match traffic in this classes.

So:
snmpwalk -c SR32cisco -v 2c <ip> .1.3.6.1.4.1.9.9.166.1.7.1.1.1
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.934618594 = STRING: "Default0.0"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.934618595 = STRING: "Default0.1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1548738414 = STRING: "Basic1.1-InternetVideo"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1946676284 = STRING: "Interactive2.1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1946676285 = STRING: "Interactive2.0"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1965376995 = STRING: "class-default"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.2041817732 = STRING: "Basic1.0"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.2041817733 = STRING: "Basic1.1"

prepolicy64  .1.3.6.1.4.1.9.9.166.1.15.1.1.6 
postpolicy64  .1.3.6.1.4.1.9.9.166.1.15.1.1.10
droprate64  .1.3.6.1.4.1.9.9.166.1.15.1.1.17

class Default0.0 for example:


snmpwalk -v 2c -c SR32cisco <ip> .1.3.6.1.4.1.9.9.166.1.5.1.1.2 | grep 934618594
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.367736682.348507640 = Gauge32: 934618594
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.1088902893.306592454 = Gauge32: 934618594
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.1256826142.1119177763 = Gauge32: 934618594
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.1280896944.1079840655 = Gauge32: 934618594
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.1634383115.341294653 = Gauge32: 934618594
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.1801666456.409914113 = Gauge32: 934618594

I can't understand last two numbers, what does it mean? For all this numbers postpolicy64 and droprate64 are zero. Ok, i can see counters for prepolicy64, but what numbers i need to use?
snmpwalk -c SR32cisco -v 2c <ip> .1.3.6.1.4.1.9.9.166.1.15.1.1.6.367736682.348507640
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.367736682.348507640 = Counter64: 3648016060
snmpwalk -c SR32cisco -v 2c <ip> .1.3.6.1.4.1.9.9.166.1.15.1.1.6.1088902893.306592454
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.1088902893.306592454 = Counter64: 1805605951
snmpwalk -c SR32cisco -v 2c <ip> .1.3.6.1.4.1.9.9.166.1.15.1.1.6.1256826142.1119177763
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.1256826142.1119177763 = Counter64: 1971189444
snmpwalk -c SR32cisco -v 2c <ip> .1.3.6.1.4.1.9.9.166.1.15.1.1.6.1280896944.1079840655
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.1280896944.1079840655 = Counter64: 2456480075140
snmpwalk -c SR32cisco -v 2c <ip> .1.3.6.1.4.1.9.9.166.1.15.1.1.6.1634383115.341294653
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.1634383115.455423778 = Counter64: 4865540981
snmpwalk -c SR32cisco -v 2c <ip> .1.3.6.1.4.1.9.9.166.1.15.1.1.6.1801666456.409914113
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.1801666456.409914113 = Counter64: 1248096372437

I can use maximum values from all of this, but i'm not sure it's correct or not.

Big thanks for your replies!

2 Replies 2

Evan Roggenkamp
Level 1
Level 1

Hello - were you ever able to find a solution to this?

hi Evan,

I'm not sure I understood the whole question, so please bear with me. :)

The "enterprises.9.9.166.1.5.1.1.2" is the 32-bit counter. The 64-bit flavour "enterprises.9.9.166.1.5.1.1.3" should be used instead. If the 32-bit counter shows some stale/bogus values, that's a bug.

The cbQosCMPrePolicyByte64, cbQosCMPostPolicyByte64 and cbQosCMDropByte64 should correspond to the byte counters in Matched, Transmitted and "Total Dropped" respectively (in the output of "show policy-map interface").

hope this helps,

/Aleksandar