[nsp] graphing CISCO-CLASS-BASED-QOS

Tim Franklin tim at colt.net
Fri Jun 18 06:51:11 EDT 2004


cisco-nsp-bounces at puck.nether.net wrote:

> I am trying to graph  policy-maps  for applying class based qos
> on interfaces
> using crickect to no luck. I have the mib file (
> CISCO-CLASS-BASED-QOS-MIB)
> but I dont seem to be making headway.
>
> I basically want to graph among other things: 5 minute offered
> rate,drop rate,
> exceed bit etc.
> I have a rudimentary script that logs on to the router and does a show
> policy-map but it keeps on breaking .
>
> Any ideas how to do this using cricket or mrtg for that matter.

It's moderately long-winded.  You need to walk some tables in the MIB to get
the correct index values for the interface, policy map and class you're
interested in, then use all of those to index into another table which
actually has the counters in it.  You'd need a script to do the first part
and generate an oid to put into your cricket / mrtg config.

I'm not sure that there's any equivalent of 'ifindex persist' that makes
that oid constant across MQC config changes or reboots, so probably you'd
need to run that script on some regular basis to check the oids in your
config are still the correct ones.

If you grab the MIB from CCO with all the comments in, it's possible to
follow it through and work out what the script actually needs to do.  I did
it by hand (snmp get, write down index, repeat, assemble oids on paper, snmp
get counters) just to prove that it was possible to make sense of the MIB
and extract counters that matched the 'show' output, but I haven't gone as
far as any automation yet.

Regards,
Tim.

--
____________   Tim Franklin                 e: tim at colt.net
\C/\O/\L/\T/   Product Engineering Manager  w: www.colt.net
 V  V  V  V    Managed Data Services        t: +44 20 7863 5714
                                            f: +44 20 7863 5876




More information about the cisco-nsp mailing list