Help needed with Aironet per-client statistics

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

Moderators: Developers, Moderators

Post Reply
comlink
Posts: 2
Joined: Wed Oct 17, 2012 2:45 pm

Help needed with Aironet per-client statistics

Post by comlink »

Hi all, I'm a Cacti newbie, and while I've spent hours (days) on this issue, I can't get any result. I'm trying to make my first totally custom chart for some Cisco Aironet 1252AG access points I have.

Basically, I'm trying to index the number of associated clients on a host, then pull their IP address, and their individual bytes in/out, which I can then use Cacti to turn into BW usage per client. After hours of searching and testing with SNMPWalk, I've discovered the indices I need to pull data from, and I can see the data with a walk, but I have no idea how to aggregate it. Here's what I have so far:

Client IP addresses (in HEX)
.1.3.6.1.4.1.9.9.273.1.2.1.1.16

Upon further research, I discovered that the output from walking the above indexes the clients by MAC address, in decimal byte format. The SSID and VLAN are also in there I believe. Thus, the below OID is for an ASUS client (last 6 sections work out to 00:1d:60:48:2b:96):
.1.3.6.1.4.1.9.9.273.1.2.1.1.16.1.9.66.101.110.110.101.116.116.50.52.0.14.53.252.102.132 = Hex-STRING: 0A 03 F6 4D

The MAC is used everywhere to identify the client uniquely, as shown here with inbound data counter (bolded differences in OID):
.1.3.6.1.4.1.9.9.273.1.3.1.1.9.1.9.66.101.110.110.101.116.116.50.52.0.14.53.252.102.132 = Counter32: 52735474

Total number of clients currently associated (Gauge32)
1.3.6.1.4.1.9.9.273.1.1.2.1.1.1

Client data outbound (counter32)
.1.3.6.1.4.1.9.9.273.1.3.1.1.7

Client data inbound (counter32)
.1.3.6.1.4.1.9.9.273.1.3.1.1.9

I want to create a chart showing, per client:
| IP Address | Outbound/s | Inbound/s |
Using the "number of clients" OID referenced above to dynamically create how many lines on the chart. If all else fails, I guess creating 20 or so lines and having some show null if there isn't a client connected would be OK too.

Should be simple... right? :) I'm starting to think this will require actual scripting, which I am absolutely not smart enough to handle.
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Help needed with Aironet per-client statistics

Post by timi »

this is a job for script server :)
comlink
Posts: 2
Joined: Wed Oct 17, 2012 2:45 pm

SUCCESS! Sort of.

Post by comlink »

Well, I managed to create a query that collects IP address, data IN, and data OUT, indexed off of the clients' unique last-six OID string. This presents a nice table as shown in the attached image.

New issue! Of course, with these being wireless clients with unique IDs, this table is going to change. Rows will be added and deleted as clients connect/disconnect.

Any pointers on how I can update the graph with the changing state of the incoming info? I'm thinking I'll have to create some sort of static line number, then query the index numbers to update with current client info.
Attachments
Data query result from custom data query xml for collecting Aironet Client statistics
Data query result from custom data query xml for collecting Aironet Client statistics
DATA QUERY RESULT.JPG (43.26 KiB) Viewed 973 times
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests