Re: [WIRELESS-LAN] Cisco AP Groups and other cool stuff...
On Fri, Jul 22, 2016 at 03:41:17PM +0100, Paul Seward wrote: > On 22 July 2016 at 15:24, Matthew Newton wrote: > > > > We've been using an in-house perl module[0] to manage the APs with > > SNMP and do this for all new APs without any issue. > > That looks significantly less nasty than the scripts I've been debugging > this week which essentially do a lot of the same things. Thanks. We've got a whole web interface for managing the APs and graphing, etc, based around it. > I'll add it to my to-investigate list. As an example to fix up any AP groups that are not correct: -- #! /usr/bin/perl -w use strict; use CiscoWireless; my $cw = CiscoWireless->new(); my $comm = "community"; my @wlcs = ( "10.1.0.5", "10.1.0.6", "10.1.0.7" ); foreach my $wlcip (@wlcs) { my $wlc = new CiscoWireless::WLC($ip, {community => $comm, version => 1}); $cw->add_wlc($wlc); } foreach my $ap (@{$cw->get_aps()}) { next unless $ap->apgroup() eq "default-group"; $ap->apgroup("campus"); print "fixed up " . $ap->name() . "\n"; } -- I should really do a proper Perl makefile and examples, sorry. Just never got around to it. :( Moving AP groups without needing a reboot was a surprise, to be honest. But it's worked for several years and no side effects yet that we can see. But (as I discovered recently with an 18-month TAC case, completely unrelated to this), doing things they don't "support" can break stuff in mysterious ways, so YMMV. Matthew -- Matthew Newton, Ph.D. Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, ** Participation and subscription information for this EDUCAUSE Constituent Group discussion list can be found at http://www.educause.edu/groups/.
RE: [WIRELESS-LAN] Cisco AP Groups and other cool stuff...
Thank you Matthew. SNMP sounds like a great alternative too! -H From: The EDUCAUSE Wireless Issues Constituent Group Listserv [mailto:WIRELESS-LAN@LISTSERV.EDUCAUSE.EDU] On Behalf Of Paul Seward Sent: Friday, July 22, 2016 9:41 AM To: WIRELESS-LAN@LISTSERV.EDUCAUSE.EDU Subject: Re: [WIRELESS-LAN] Cisco AP Groups and other cool stuff... On 22 July 2016 at 15:24, Matthew Newton mailto:m...@leicester.ac.uk>> wrote: We've been using an in-house perl module[0] to manage the APs with SNMP and do this for all new APs without any issue. That looks significantly less nasty than the scripts I've been debugging this week which essentially do a lot of the same things. I'll add it to my to-investigate list. -Paul -- -- Paul Seward,Senior Systems Administrator,University of Bristol paul.sew...@bristol.ac.uk<mailto:paul.sew...@bristol.ac.uk> +44 (0)117 39 41148GPG Key ID: E24DA8A2 GPG Fingerprint:7210 4E4A B5FC 7D9C 39F8 5C3C 6759 3937 E24D A8A2 ** Participation and subscription information for this EDUCAUSE Constituent Group discussion list can be found at http://www.educause.edu/groups/. ** Participation and subscription information for this EDUCAUSE Constituent Group discussion list can be found at http://www.educause.edu/groups/.
Re: [WIRELESS-LAN] Cisco AP Groups and other cool stuff...
On 22 July 2016 at 15:24, Matthew Newton wrote: > > We've been using an in-house perl module[0] to manage the APs with > SNMP and do this for all new APs without any issue. That looks significantly less nasty than the scripts I've been debugging this week which essentially do a lot of the same things. I'll add it to my to-investigate list. -Paul -- -- Paul Seward,Senior Systems Administrator,University of Bristol paul.sew...@bristol.ac.uk +44 (0)117 39 41148GPG Key ID: E24DA8A2 GPG Fingerprint:7210 4E4A B5FC 7D9C 39F8 5C3C 6759 3937 E24D A8A2 ** Participation and subscription information for this EDUCAUSE Constituent Group discussion list can be found at http://www.educause.edu/groups/.
Re: [WIRELESS-LAN] Cisco AP Groups and other cool stuff...
On Fri, Jul 22, 2016 at 02:07:22PM +, Hector J Rios wrote: > But moving an AP to a new group requires a reboot. Interestingly, if you change AP group with SNMP, it just moves over without a reboot of the AP being required. We've been using an in-house perl module[0] to manage the APs with SNMP and do this for all new APs without any issue. Cheers, Matthew [0] https://github.com/mcnewton/cisco-wlc-perl - documentation severely lacking, sorry. -- Matthew Newton, Ph.D. Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, ** Participation and subscription information for this EDUCAUSE Constituent Group discussion list can be found at http://www.educause.edu/groups/.