NEW Cisco Aironet - graphing wireless AP performance - v1.1

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

Moderators: Developers, Moderators

niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

I have updated the original post with new script, version 1.1
bites
Posts: 5
Joined: Wed Oct 29, 2008 5:55 pm
Contact:

Re: Template for 8.6i anyone?

Post by bites »

mcliffe wrote:Does anyone have coresponding templates of this for a Cacti 8.6i installation?
ditto :/
Igloo
Posts: 22
Joined: Fri Dec 01, 2006 8:24 am

Post by Igloo »

Right,

I've updated the IOS on the wireless switch.

root@cacti:/usr/share/cacti/site/scripts# snmpwalk -c public -v 2c w-ap-01 1.3.6.1.4.1.9.9.273.1.3.1.1.1
SNMPv2-SMI::enterprises.9.9.273.1.3.1.1.1.1.10.119.105.102.105.45.111.45.119.105.110.0.28.191.140.70.213 = STRING: "l"


So it now works.

What's the commandset to run the script, I tried it and returned 0 for all...


Ignore me, Sorted it :)

Running on the following

BOOTLDR: C1200 Boot Loader (C1200-BOOT-M) Version 12.2(8)JA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)

w-ap-01 uptime is 37 minutes
System returned to ROM by power-on
System image file is "flash:/c1200-k9w7-mx.123-8.JEC2/c1200-k9w7-mx.123-8.JEC2"
User avatar
mschwen
Posts: 17
Joined: Thu Nov 06, 2008 1:03 pm
Location: Orem, Utah

Cisco Wireless LAN Controller AP Association

Post by mschwen »

So I am not sure if any of you guys can help me. I am a network engineer and don't do too much scripting yet, just a little.

I am trying to put together a graph that would show me the number of AP associated with the wireless LAN controller. Then I would create a threshold for the number of AP I desire to stay connected to the WLC. If that number ever drops I know an AP has dropped off the network and I will be notified.

Not sure if this is possible but that would be awesome if someone could create this!

I am using the Cisco 4400 and 2106 WLC's.
User avatar
mschwen
Posts: 17
Joined: Thu Nov 06, 2008 1:03 pm
Location: Orem, Utah

Net Post

Post by mschwen »

crashergs
Cacti User
Posts: 53
Joined: Fri May 23, 2008 3:37 pm

Post by crashergs »

urban wrote:I can't use this template with cisco 1240 series.

oid: .1.3.6.1.4.1.9.9.273.1.3.1.1.1

the response from the snmpwalk command:

CISCO-DOT11-ASSOCIATION-MIB::cDot11ClientCurrentTxRateSet = No Such Instance currently exists at this OID

Is this a problem from the aironet series 1240? or a software bug?

I have version Version 12.4(10b)JA on the AP.


I am having the same issue....

This is the system I am running:
Cisco IOS Software, C1240 Software (C1240-K9W7-M), Version 12.4(10b)JA,

Is there a workaround for this? the graphs you have created are very nice and I would like to incorporate this into our systems
Igloo
Posts: 22
Joined: Fri Dec 01, 2006 8:24 am

Post by Igloo »

The MIBS don't exist in the 1240 IOS.

I'm not sure if there is a replacement, i'll have to check though i don't think there is.

About the WL controllers, you'll have to find the MIB that says how many access points are connected, then get an addon for cacti to make it behave like nagios. then set the warning level.

Will have a look at the cisco MIB list.
aceg3905
Posts: 12
Joined: Wed Nov 24, 2004 9:11 am
Location: Manchester, UK

Post by aceg3905 »

hey guys trying to use this script against an 1130 AP running Version 12.4(10b)JDA anyone had any look script runs but returns all 0's as shown below

./group_dot11_client_rate.tcl
rate_1_cnt:0 rate_2_cnt:0 rate_5_5_cnt:0 rate_6_cnt:0 rate_9_cnt:0 rate_11_cnt:0 rate_12_cnt:0 rate_18_cnt:0 rate_24_cnt:0 rate_36_cnt:0 rate_48_cnt:0 rate_54_cnt:0 rate_avg:0

thanks in advance
chet
Posts: 41
Joined: Mon Feb 09, 2009 12:49 pm

Post by chet »

I'm just trying this script for the first time but I'm getting the following error

Code: Select all

./group_dot11_client_rate.tcl
bash: ./group_dot11_client_rate.tcl: Permission denied

8 -rw-r--r-- 1 root root 4938 2009-03-10 11:41 group_dot11_client_rate.tcl

Does anybody know why?

Thanks

Martyn
L0gRuS
Cacti User
Posts: 127
Joined: Thu Nov 06, 2008 7:57 am

Post by L0gRuS »

i check on cisco.com My ap- 1241 for support mib association. Mib support

then i was check:
[root@localhost scripts]# tclsh group_dot11_client_rate.tcl 100.xx.xx.135 public 2c
rate_1_cnt:1 rate_2_cnt:0 rate_5_5_cnt:0 rate_6_cnt:0 rate_9_cnt:0 rate_11_cnt:0 rate_12_cnt:0 rate_18_cnt:0 rate_24_cnt:0 rate_36_cnt:0 rate_48_cnt:0 rate_54_cnt:2 rate_avg:36
but graph empty with NAN

How debug this problem?
Cacti v.087g + PAv2.9
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

L0gRuS wrote:i check on cisco.com My ap- 1241 for support mib association. Mib support

then i was check:
[root@localhost scripts]# tclsh group_dot11_client_rate.tcl 100.xx.xx.135 public 2c
rate_1_cnt:1 rate_2_cnt:0 rate_5_5_cnt:0 rate_6_cnt:0 rate_9_cnt:0 rate_11_cnt:0 rate_12_cnt:0 rate_18_cnt:0 rate_24_cnt:0 rate_36_cnt:0 rate_48_cnt:0 rate_54_cnt:2 rate_avg:36
but graph empty with NAN

How debug this problem?
So the script is working, so I think you need to check the other posts for info about how to debug NANs. Look for any post from Gandalf on the development team - he has a link to debug NANs in his signature.

Hope this helps.
L0gRuS
Cacti User
Posts: 127
Joined: Thu Nov 06, 2008 7:57 am

Post by L0gRuS »

niobe wrote:
L0gRuS wrote:i check on cisco.com My ap- 1241 for support mib association. Mib support

then i was check:
[root@localhost scripts]# tclsh group_dot11_client_rate.tcl 100.xx.xx.135 public 2c
rate_1_cnt:1 rate_2_cnt:0 rate_5_5_cnt:0 rate_6_cnt:0 rate_9_cnt:0 rate_11_cnt:0 rate_12_cnt:0 rate_18_cnt:0 rate_24_cnt:0 rate_36_cnt:0 rate_48_cnt:0 rate_54_cnt:2 rate_avg:36
but graph empty with NAN

How debug this problem?
So the script is working, so I think you need to check the other posts for info about how to debug NANs. Look for any post from Gandalf on the development team - he has a link to debug NANs in his signature.

Hope this helps.
i think problem with this:

Code: Select all

03/18/2009 11:33:04 AM - SPINE: Poller[0] Host[59] ERROR: Empty result [10.xx.xx.xx]: '/var/www/html/scripts/group_dot11_client_rate.tcl 10.xx.xx.xx public 2' 
but i think what script no give cacti information. what do you think?


debug graph

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-14400 \
--end=-60 \
--title="XXX - Dot11 Client Rate Distribution" \
--base=1000 \
--height=250 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Clients" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_1_cnt:AVERAGE \
DEF:b="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_2_cnt:AVERAGE \
DEF:c="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_5_5_cnt:AVERAGE \
DEF:d="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_6_cnt:AVERAGE \
DEF:e="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_9_cnt:AVERAGE \
DEF:f="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_11_cnt:AVERAGE \
DEF:g="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_12_cnt:AVERAGE \
DEF:h="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_18_cnt:AVERAGE \
DEF:i="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_24_cnt:AVERAGE \
DEF:j="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_36_cnt:AVERAGE \
DEF:ba="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_48_cnt:AVERAGE \
DEF:bb="/var/www/html/rra/XXX_dot11_rate_36_cnt_1021.rrd":dot11_rate_54_cnt:AVERAGE \
AREA:a#F51D30FF:"1Mbps"  \
GPRINT:a:LAST:"  Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"  \
AREA:b#FF5700FF:"2Mbps":STACK \
GPRINT:b:LAST:"  Current\:%8.0lf"  \
GPRINT:b:AVERAGE:"Average\:%8.0lf"  \
GPRINT:b:MAX:"Maximum\:%8.0lf\n"  \
AREA:c#FFAB00FF:"5.5Mbps":STACK \
GPRINT:c:LAST:"Current\:%8.0lf"  \
GPRINT:c:AVERAGE:"Average\:%8.0lf"  \
GPRINT:c:MAX:"Maximum\:%8.0lf\n"  \
AREA:d#ffd700FF:"6Mbps":STACK \
GPRINT:d:LAST:"  Current\:%8.0lf"  \
GPRINT:d:AVERAGE:"Average\:%8.0lf"  \
GPRINT:d:MAX:"Maximum\:%8.0lf\n"  \
AREA:e#4123A1FF:"9Mbps":STACK \
GPRINT:e:LAST:"  Current\:%8.0lf"  \
GPRINT:e:AVERAGE:"Average\:%8.0lf"  \
GPRINT:e:MAX:"Maximum\:%8.0lf\n"  \
AREA:f#4444FFFF:"11Mbps":STACK \
GPRINT:f:LAST:" Current\:%8.0lf"  \
GPRINT:f:AVERAGE:"Average\:%8.0lf"  \
GPRINT:f:MAX:"Maximum\:%8.0lf\n"  \
AREA:g#4668E4FF:"12Mbps":STACK \
GPRINT:g:LAST:" Current\:%8.0lf"  \
GPRINT:g:AVERAGE:"Average\:%8.0lf"  \
GPRINT:g:MAX:"Maximum\:%8.0lf\n"  \
AREA:h#157419FF:"18Mbps":STACK \
GPRINT:h:LAST:" Current\:%8.0lf"  \
GPRINT:h:AVERAGE:"Average\:%8.0lf"  \
GPRINT:h:MAX:"Maximum\:%8.0lf\n"  \
AREA:i#35962BFF:"24Mbps":STACK \
GPRINT:i:LAST:" Current\:%8.0lf"  \
GPRINT:i:AVERAGE:"Average\:%8.0lf"  \
GPRINT:i:MAX:"Maximum\:%8.0lf\n"  \
AREA:j#74C366FF:"36Mbps":STACK \
GPRINT:j:LAST:" Current\:%8.0lf"  \
GPRINT:j:AVERAGE:"Average\:%8.0lf"  \
GPRINT:j:MAX:"Maximum\:%8.0lf\n"  \
AREA:ba#7EE600FF:"48Mbps":STACK \
GPRINT:ba:LAST:" Current\:%8.0lf"  \
GPRINT:ba:AVERAGE:"Average\:%8.0lf"  \
GPRINT:ba:MAX:"Maximum\:%8.0lf\n"  \
AREA:bb#C4FD3DFF:"54Mbps":STACK \
GPRINT:bb:LAST:" Current\:%8.0lf"  \
GPRINT:bb:AVERAGE:"Average\:%8.0lf"  \
GPRINT:bb:MAX:"Maximum\:%8.0lf\n" 
Cacti v.087g + PAv2.9
chryzo
Posts: 17
Joined: Mon Feb 18, 2008 8:48 am

Post by chryzo »

I had the same problem - from command-line the script worked, but NaN in Cacti. I added "tcl" (e.g. "tcl <path to cacti>/scripts/...") in the beginning of the field "input string" at Data input method -> Cisco - Dot11 Client Rate Distrubution.
trkpower
Posts: 1
Joined: Wed May 06, 2009 4:57 am

Post by trkpower »

Hello.
Is there anyway that i can get the channel that is in use?
Thanks in advance.
Best Regards
elhascampeador
Posts: 3
Joined: Fri Oct 10, 2008 11:50 pm

Post by elhascampeador »

chryzo wrote:I had the same problem - from command-line the script worked, but NaN in Cacti. I added "tcl" (e.g. "tcl <path to cacti>/scripts/...") in the beginning of the field "input string" at Data input method -> Cisco - Dot11 Client Rate Distrubution.
Thanks for that - worked like a charm.

Gotta say the Aironet scripts and host templates look very good. Nice job everyone.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests