Ce document décrit comment extraire les différentes valeurs concernant les détails de la qualité de service (QoS) basée sur les classes (CISCO-CLASS-BASED-QOS-MIB) appliqués au plan de contrôle à l'aide du protocole SNMP (Simple Network Management Protocol).
Cisco recommande que vous ayez :
Les informations contenues dans ce document sont basées sur les versions de matériel et de logiciel suivantes :
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Utilisez cette procédure afin de déterminer ou de confirmer l'OID (Object Identifier) requis pour l'interrogation.
show snmp mib ifmib ifindex | include GigabitEthernet6/1/3
GigabitEthernet6/1/3: Ifindex = 73
UNIX #snmpwalk -v2c -c1.3.6.1.2.1.2.2 | grep -i GigabitEthernet6/1/3
IF-MIB::ifDescr.73 = STRING: GigabitEthernet6/1/3
UNIX #snmpwalk -v2c -c1.3.6.1.4.1.9.9.166.1.1.1.1.4 | grep -i 73
SNMPv2-SMI::enterprises.9.9.166.1.1.1.1.4.1170 = INTEGER: 73
UNIX #snmpwalk -v2c -c1.3.6.1.4.1.9.9.166.1.7.1.1.1
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1593 = STRING: "class-default"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1874801 = STRING:"DOMESTIC_IN
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.5134417 = STRING:"INTERNATIONAL_IN"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.6181089 = STRING:"DOMESTIC_OUT"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.12374209 = STRING:"INTERNATIONAL_OUT"
UNIX #snmpwalk -v2c -c1.3.6.1.4.1.9.9.166.1.5.1.1.2
UNIX #snmpwalk -v2c -c1.3.6.1.4.1.9.9.166.1.5.1.1.2 grep -i 'Gauge32: 6181089'
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.352.352 = Gauge32: 11986352
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.352.1163651 = Gauge32: 9637091
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.352.7200738 = Gauge32: 1594
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.352.10567713 = Gauge32: 1593
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.354.354 = Gauge32: 11986352
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.354.431603 = Gauge32: 9637091
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.1170.7552545 = Gauge32: 6181089
+-- -R-- Counter cbQosCMPrePolicyPktOverflow(1)
+-- -R-- Counter cbQosCMPrePolicyPkt(2)
+-- -R-- Counter64 cbQosCMPrePolicyPkt64(3)
+-- -R-- Counter cbQosCMPrePolicyByteOverflow(4)
+-- -R-- Counter cbQosCMPrePolicyByte(5)
+-- -R-- Counter64 cbQosCMPrePolicyByte64(6)
+-- -R-- Gauge cbQosCMPrePolicyBitRate(7)
+-- -R-- Counter cbQosCMPostPolicyByteOverflow(8)
+-- -R-- Counter cbQosCMPostPolicyByte(9)
+-- -R-- Counter64 cbQosCMPostPolicyByte64(10)
+-- -R-- Gauge cbQosCMPostPolicyBitRate(11)
+-- -R-- Counter cbQosCMDropPktOverflow(12)
+-- -R-- Counter cbQosCMDropPkt(13)
+-- -R-- Counter64 cbQosCMDropPkt64(14)
+-- -R-- Counter cbQosCMDropByteOverflow(15)
+-- -R-- Counter cbQosCMDropByte(16)
+-- -R-- Counter64 cbQosCMDropByte64(17)
+-- -R-- Gauge cbQosCMDropBitRate(18)
+-- -R-- Counter cbQosCMNoBufDropPktOverflow(19)
-- -R-- Counter cbQosCMNoBufDropPkt(20)
-- -R-- Counter64 cbQosCMNoBufDropPkt64(21)
Référez-vous à SNMP MIB Locator for MIB pour ces options.
Par exemple, l'objet cbQosCMPostPolicyBitRate (1.3.6.1.4.1.9.9.166.1.15.1.1.11) interroge le débit du trafic après l'exécution de la stratégie QoS.
Exemple - commande permettant d'obtenir le débit binaire post-policy :
UNIX # snmpwalk -v2c -c1.3.6.1.4.1.9.9.166.1.15.1.1.11.1170.7552545
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.11.1170.7552545 = Gauge32: 27000
Voici un extrait des résultats de la commande CLI pour obtenir le débit binaire post-policy :
Router # show policy-map interface GigabitEthernet6/1/3
Class-map: DOMESTIC_OUT (match-any) (7552545/2)
8170810 packets, 979471829 bytes
5 minute offered rate 27000 bps, drop rate 0 bps
Match: any (5213858)
police:
1024000000 bps, 16777215 limit, 16777215 extended limit
conformed 8170810 packets, 979471829 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 27000 bps, exceed 0 bps