cancel
Showing results for 
Search instead for 
Did you mean: 

Create a script that will automatically toggle POE on a port if an AP goes down

Create a script that will automatically toggle POE on a port if an AP goes down

Byron_Morales
New Contributor II
One of the first things we try to do if an AP goes down in the controller is to find where that AP is and toggle POE.

It would be neat to have a script in netsight that would automatically do this to a port if it detects that an AP went down.
11 REPLIES 11

StephanH
Valued Contributor III
Hello Byron,

you can achieve that if you have NAC in place. This is the rough structure for the program:

  1. Alarm Manager detects the if a AP goes down and start the program with the AP info (name, ip, ...) from alam manager.
  2. The program use the AP info to ask the NAC (via Rest-API) for the switch and port
  3. The program connects to the switch and do an port disable/enable
I think the new XMC workflow can help if you want do to that with more single steps not in one program.

Best regards
Stephan
Regards Stephan

I don't have Extreme Access Points and I had a similar issue with my Aerohive Access Points. I found that they would go offline but still show power draw on the Extreme switch ( zombie mode I called it ).

In the Aerohive management system, I had LLDP data for the Access Point giving me the switch MAC and port for the switch the Access Point was connected to.

I wrote a script that did the following:

  • Connect via REST API to may wireless management system to get a list of potential "zombie" access points.
  • Connect to Extreme Management Center via XML API to get a list of all switches
  • Resolve the switch MAC in the the Access Point data to a switch IP address by building a MAC keyed table of my switches
  • Connect to the switch and interrogate the port state ( basically is current being drawn )
  • Toggle PoE on the switch port
  • Wait for five minutes to see if I can detect that the AP is now up ( its MAC visible on the port with "show fdb port xx" command )
I could share the code if anybody wanted to use it as the basis for a similar script. The Extreme elements would be reusable and the Aerohive stuff would show a template for implementing on another Wireless system.

StephanH
Valued Contributor III
If you use MAC-Auth for the APs, the AP is like a Client for the NAC-GW. Therefore you need a End-System license each system. If you have 500 APs you need 500 licenses, yes. Nevertheless if you use MAC-Auth or 802.1x.

The license counter works during a 24 hour period. Means all authentication requests from different devices over 24 hours are added together. You need no license per switch port or AP.

If you have 500 APs and 200 Laptops and all devices authenticate during 24 hours you need 700 End-System licenses.

Best regards
Stephan
Regards Stephan

StephanH
Valued Contributor III
Hello Byron,

there are different views to see the switch port. Here is one:

da9912be59724d329c17605a964797d1_RackMultipart20180926-127327-5np9f6-image_inline.png



and here is another one (and there are much more)

da9912be59724d329c17605a964797d1_RackMultipart20180926-8233-fmd5pt-image_inline.png



Regards Stephan
GTM-P2G8KFN