[mrtg] Cisco Interface Policy

Dean, Mike mdean at landstar.com
Fri Mar 23 20:59:33 CET 2007


I just finished a perl script to track this information (testing it
now).  I'm more than happy to share it, just send an email to me
(directly, not to the list please).  Or, if you want to right one
yourself (in perl or something else), here are the OIDS you need to
ensure that get the correct policy every time, as some of the OID index
values do change.  I'm also including the Pre and Post bit rate OIDs.  

The Pre OID is the bit rate that traffic came into the router.  The post
is what happened after the policy was applied.  If your QoS policy does
traffic shaping or policing, the Post value would be less than the Pre
value if packets were dropped/buffered due to the QoS policy:


Get Interface ifIndex from ifDescr (1.3.6.1.2.1.2.2.1.2)
i.e., 1.3.6.1.2.1.2.2.1.2.18 (18 is the ifIndex) = MFR1.500

Get the list of QoS ifIndexes (cbQosIfIndex)
1.3.6.1.4.1.9.9.166.1.1.1.1.4.856503(the cbQosIfIndex) = 18

Get a list of the classes and their indexes from cbQosCMName
(1.3.6.1.4.1.9.9.166.1.7.1.1.1)
i.e., 1.3.6.1.4.1.9.9.166.1.7.1.1.1.1059 (309505 is the index) = FTP

Get the QoS class map index for the interface from cbQosConfigIndex
(1.3.6.1.4.1.9.9.166.1.5.1.1.2)
i.e.,
1.3.6.1.4.1.9.9.166.1.5.1.1.2.856503(cbQosIfIndex).856531(cbQosConfigInd
ex) = 1059(cbQosCMName)

Get the Pre-QoS bit rate from cbQosCMPrePolicyBitRate
(1.3.6.1.4.1.9.9.166.1.15.1.1.7)
i.e.,1.3.6.1.4.1.9.9.166.1.15.1.1.7.856503(cbQosIfIndex).856531(cbQosCon
figIndex) = <bit rate>

Now, get the bit rate from cbQosCMPostPolicyBitRate
(1.3.6.1.4.1.9.9.166.1.15.1.1.11)
i.e.,1.3.6.1.4.1.9.9.166.1.15.1.1.11.856503(cbQosIfIndex).856531(cbQosCo
nfigIndex) = <bit rate> 

Mike

-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch
[mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Zoltan Zoltan
Sent: Thursday, March 22, 2007 7:59 AM
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Cisco Interface Policy

Hi,

Could I monitor the interface policy counters in a Cisco router?
("service-policy output POLICYNAME" IOS command)
I didn't find anything about such MIBs...

Zoli

_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg



More information about the mrtg mailing list