Help with snmp_queries file for Cisco WLC

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

Moderators: Developers, Moderators

Post Reply
mikygee
Cacti User
Posts: 88
Joined: Thu Jul 30, 2009 3:13 am

Help with snmp_queries file for Cisco WLC

Post by mikygee »

Hello,

I'm trying to do a new WLC template and I don't understand how xml files in resource/snmp_queries work.
I did quite a lot of reading.

I can list all my AP with the query
snmpwalk -v 3 -u usr -l authPriv -a SHA -A string1 -x AES -X string2 IP .1.3.6.1.4.1.14179.2.2.1.1.3
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.65.182.128 = STRING: "AP14"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.88.94.64 = STRING: "AP22"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.88.94.160 = STRING: "AP12"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.89.242.192 = STRING: "AP05"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.215.97.160 = STRING: "AP04"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.224.143.0 = STRING: "AP21"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.236.120.192 = STRING: "AP24"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.241.199.160 = STRING: "AP23"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.245.236.96 = STRING: "AP03"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.245.243.128 = STRING: "AP11"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.56.14.77.250.233.96 = STRING: "AP01"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.112.16.92.218.194.80 = STRING: "AP91"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.112.125.185.227.45.64 = STRING: "AP13"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.244.219.230.195.164.160 = STRING: "AP93"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.244.219.230.198.46.64 = STRING: "AP02"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.244.219.230.200.21.128 = STRING: "AP92"

I'm interested in matching the 3rd number from the right of the OID, respectively 200 or 198 or 195, or 227
A matching regexp would look like OID/REGEXP:^.*\.(\d+)\.\d+\.\d+$

Then I'd like to use this number that corresponds to the AP to retrieve some stats

With .1.3.6.1.4.1.14179.2.2.13.1.1.244.219.230.XXXX.21.128.1 I replace XXXX with 200 to know the number of clients connected to AP92
snmpwalk -v 3 -u usr -l authPriv -a SHA -A string1 -x AES -X string2 IP .1.3.6.1.4.1.14179.2.2.13.1.1.244.219.230.200.21.128.1
SNMPv2-SMI::enterprises.14179.2.2.13.1.1.244.219.230.200.21.128.1 = INTEGER: 0

How can I do that ?
Some info about my system
- Cacti: 0.8.8g / OpenBSD 6.6
- Third Party: Nginx 1.16.1 / PHP 7.3.10 / MariaDB 10.3.18v1 / NET-SNMP version 5.8p2 / RRDTool 1.7.2
- Plugins: Weathermap 0.97c / Settings 0.71 / Thold 0.5 / Flowview 1.1 / Realtime 0.5.2 / Predict 1.0
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests