Another Cisco Class Map Statistics - no script server (ugly)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (u

Post by JorisFRST »

Hi,

you should do a verbose, it should show up something, even when there's no indexes.

Try to do a snmpwalk from the cacti server on the device for following oid : .1.3.6.1.4.1.9.9.166.1.15.1.1.11
Joris.
http://www.routerjanitor.com
taanvox
Posts: 5
Joined: Fri Aug 02, 2019 10:34 am

Re: Another Cisco Class Map Statistics - no script server (u

Post by taanvox »

JorisFRST wrote:Hi,

you should do a verbose, it should show up something, even when there's no indexes.

Try to do a snmpwalk from the cacti server on the device for following oid : .1.3.6.1.4.1.9.9.166.1.15.1.1.11
Hi Joris,

I did a verbose, but "class map & service policy" not show item or rows.
Can you help me, pls ?
Attachments
cacti error.png
cacti error.png (23.7 KiB) Viewed 6292 times
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by JorisFRST »

Sorry for the late answer

but did you manage to do an snmpwalk for the device ?

Thanks,

Joris.
Joris.
http://www.routerjanitor.com
taanvox
Posts: 5
Joined: Fri Aug 02, 2019 10:34 am

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by taanvox »

JorisFRST wrote: Tue Aug 20, 2019 8:51 am Sorry for the late answer

but did you manage to do an snmpwalk for the device ?

Thanks,

Joris.
I have manage an snmpwalk for the device
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by JorisFRST »

Maybe a script outside Cacti that updates the DB with the required names for these type of graphs where indexes don't match up.

Problem would be that it would only be usefull for the one type of graph. So probably why nobody made something like this.
Joris.
http://www.routerjanitor.com
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by bmfmancini »

I found this OID iso.3.6.1.4.1.9.9.166.1.8.1.1.1 that shows the class map name

so.3.6.1.4.1.9.9.166.1.5.1.1.4.1043.1053 = Gauge32: 1051
iso.3.6.1.4.1.9.9.166.1.6.1.1.1.1035 = STRING: "POLICE-SETTING"
iso.3.6.1.4.1.9.9.166.1.6.1.1.2.1035 = ""
iso.3.6.1.4.1.9.9.166.1.7.1.1.1.1025 = STRING: "class-default"
iso.3.6.1.4.1.9.9.166.1.7.1.1.1.1029 = STRING: "MATCH_PREC"
iso.3.6.1.4.1.9.9.166.1.7.1.1.2.1025 = ""
iso.3.6.1.4.1.9.9.166.1.7.1.1.2.1029 = ""
iso.3.6.1.4.1.9.9.166.1.7.1.1.3.1025 = INTEGER: 3

here is the OID mib view

cbQosPolicyMapCfgEntry cbQosPolicyMapCfgEntry 1.3.6.1.4.1.9.9.166.1.6.1.1
cbQosPolicyMapName cbQosPolicyMapName 1.3.6.1.4.1.9.9.166.1.6.1.1.1
cbQosPolicyMapDesc cbQosPolicyMapDesc 1.3.6.1.4.1.9.9.166.1.6.1.1.2

Here is the output from the router its running IOS 12.4


netflow-lab#sh policy-map
Policy Map POLICE-SETTING
Class MATCH_PREC
police cir 8000 bc 1000 be 1000
conform-action transmit
exceed-action set-qos-transmit 1
violate-action drop
netflow-lab#

I am working on updating the XML to include a field that can be queried !

Thanks for the template !!!
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by JorisFRST »

seanmancini wrote: Sat Nov 30, 2019 1:21 am I found this OID iso.3.6.1.4.1.9.9.166.1.8.1.1.1 that shows the class map name
cisco_cbQosCMCfgEntry.xml is using <oid>.1.3.6.1.4.1.9.9.166.1.7.1.1.1</oid>

and using a regex to parse 1029 for your example MATCH_PREC
Joris.
http://www.routerjanitor.com
ndhami23
Posts: 6
Joined: Fri Dec 27, 2013 4:52 am

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by ndhami23 »

Hi JorisFRST,

My Cacti Graph is not showing PostBitRate, what can be the reason? Can you please suggest.
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by JorisFRST »

edited
Last edited by JorisFRST on Fri Aug 07, 2020 6:11 am, edited 1 time in total.
Joris.
http://www.routerjanitor.com
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by JorisFRST »

Hi,

first do an snmpwalk against your router to make sure it is giving the values
Joris.
http://www.routerjanitor.com
Hengly
Posts: 1
Joined: Fri Aug 13, 2021 1:15 am

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by Hengly »

I have imported QoS templates, but seem it's doesn't work. I did a verbose, but "class map " not show item or rows. Can you help me, Please ?
1) Cisco - Class Based QoS Class Map Statistics Success [0 Items, 0 Rows]
2) Cisco - Class Based QoS Policy Map Config Entry Success [0 Items, 0 Rows]
3) Cisco - Class Based Qos Service Policy Entry Success [0 Items, 0 Rows]
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by JorisFRST »

Hi,

do a verbose query, it should give you some output.

At least some sort of error ?
Joris.
http://www.routerjanitor.com
taanvox
Posts: 5
Joined: Fri Aug 02, 2019 10:34 am

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by taanvox »

Hi Joris,

I used your template, but my graph not show value. Can you help me, pls ?
Attachments
test.png
test.png (16.95 KiB) Viewed 2741 times
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Another Cisco Class Map Statistics - no script server (ugly)

Post by JorisFRST »

Hi,

some cisco devices will always show 0, best is to do snmpwalk and see if it shows the numbers there.
Joris.
http://www.routerjanitor.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests