10-21-2008 03:49 AM - edited 07-03-2021 04:39 PM
We have deployed Lightweight AP with WLC. But we do not purchase WCS. Is there a way to snmp poll the WLC to obtain the number of LAPs joined to the WLC? If so, what is the snmp OID to poll?
Thanks for the help
10-21-2008 06:07 AM
10-21-2008 12:27 PM
Hi Eric,
I would like to do the same as happy12345. I am in the process of writing a script that will give me a listing of the AP's associated with a WLC and I need to tell my script the limit of the 1.3.6.1.2.1.47.1.1.1.1.13 OID.
Thanks,
Aaron
10-21-2008 03:58 PM
Hi Eric and Aaron,
Not sure if you guys can post your scripts so that we can learn from them on how to get those AP number and getting them plot in mrtg.
Thanks
11-25-2008 03:10 PM
Do you still need this info happy12345? As I could post something a explain it. Are you using linux/unix?
11-25-2008 03:44 PM
I am using mrtg in linux. appreciate if you could post how u did this
12-04-2008 12:35 PM
Sorry had a busy few days and neglected to check the post.
Well to test things out you could just issue the following command.
echo -n "Controller 1: " && /usr/bin/snmpwalk -v3 -u SNMPV3 -l authPriv -a SHA -A yourpwhere -x DES -X yourpwhere 10.x.x.4 1.3.6.1.4.1.14179.2.2.1.1.3
echo -n "Controller 2: " && /usr/bin/snmpwalk -v3 -u SNMPV3 -l authPriv -a SHA -A yourpwhere -x DES -X yourpwhere 10.x.x.6 1.3.6.1.4.1.14179.2.2.1.1.3
echo -n "Controller 3: " && /usr/bin/snmpwalk -v3 -u SNMPV3 -l authPriv -a SHA -A yourpwhere -x DES -X yourpwhere 10.x.x.8 1.3.6.1.4.1.14179.2.2.1.1.3
In my example Im using snmpv3 but its just as easy to use v2c. Now this will list all the ap's associated to the wlc. If you want a numerical value just pipe it by adding "| wc -l" to the end. Once you have this working you can just dump the values into a file and have mrtg read the values from each controller but it depends on your setup and if you are trying to integrate it to anything fancy but I could probably help you.
12-05-2008 07:04 AM
Here is a simple MRTG script that will give an AP count per controller. You can modify as you prefer
#!/usr/bin/perl
#Author: Eric Garnel
##########################################################
# insert gnu license here
###############################################################
#
# instructions
# change the ip addresses below to suite your controller & snmp values
#
# show apcount
#
$apcount = `echo -n "Controller 1: " && snmpwalk -v2c -c public 111.666.222.3 1.3.6.1.4.1.14179.2.2.1.1.3 | wc -l`;
$apcount =~ s/ +//;
chop($apcount);
print("$apcount\n");
print "0\n";
print "0\n";
print "0\n";
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: