Uninett / nav

Network Administration Visualized
GNU General Public License v3.0
194 stars 39 forks source link

[BUG] Disabling a Port in Port Admin does not turn off PoE power on Aruba switches #2186

Open j0nnybe opened 4 years ago

j0nnybe commented 4 years ago

Describe the bug Disabling a Port in Port Admin does not turn off PoE power on Aruba switches

Expected behavior At USN we use NAV a lot for AV-equipment management, and we often need the ability to turn off/on devices that are powered by PoE. Doing so with devices connected to Cisco switches work fine. Just unset the "Enabled" flag on a specific port in Port Admin to turn off power. We also have a lot of Aruba 3810M switches, where disabling a port only turn off the traffic.

Getting this to work would be very much appreciated! We would then not have to bother our network admins with logging into Aruba switches running poe commands on ports.

Environment (please complete the following information):

lunkwill42 commented 4 years ago

If Aruba supports setting the PoE status of a switch through SNMP, it would help if you are able to dig up some documentation for the approprate MIBs (which I assume would be proprietary). Adding a special case for Aruba wouldn't be much work if the documentation is good.

j0nnybe commented 4 years ago

The MIBs for the Aruba switches we use can be downloaded here: https://asp.arubanetworks.com/downloads;products=Aruba%20Switches;productSeries=Aruba%203810M%20Switch%20Series

In this MIB Archive we find that the MIB file ieee802af.mib contains "pethPsePortAdminEnable" which describe as enable/disable PoE. Since this is an IEEE MIB we believe that this a standard way of doing this that can work between many switch models and vendors.

Another source to look at could be: https://support.hpe.com/hpesc/public/docDisplay?docId=c02596727&docLocale=en_US. The Aruba switches are in family with the HP ProCurve.

We have not tested that this actually will work.

I hope this information will help you!