Hi Mike,
yes it is possible using python and pyaoscx module, there is a "Setter" for enable/disable PoE https://github.com/aruba/pyaoscx/blob/master/pyaoscx/poe_interface.py#L250
Can you also look for use Ansible => https://github.com/aruba/aoscx-ansible-collection/blob/master/docs/aoscx_poe.md
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------
Original Message:
Sent: Dec 18, 2023 01:49 PM
From: Mike_Jeffryes_CCH_NE
Subject: API programming for CX switches - POE
We have several devices that seem to need POE bounced to them occasionally. Not our AP's, but more like IP-cameras and other Iot devices.
Today, we are having our service desk putty or web into switches (cx 6300's) and manually bounce the power. I have been reading about how to do this in python, but it still seems to be a manual process. What I would like, is to be able to list the switches, and then the ports in that switch stack. And have one program, that is manually ran, or scheduled at say 2am. that would then fire off and send the API command to those switches, and bounce the ports (from a pre-determined list of ports)
Has anyone done something like that already?
------------------------------
Mike Jeffryes
mrjeffryes@columbushosp.org
------------------------------