Wired Intelligent Edge (Campus Switching and Routing)

Reply
Highlighted
MVP Expert

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API


@tbig wrote:

I apologize if this should be a separate thread vs a question on your PS module:

 

I'm trying to determine if the REST API for ArubaOS allows toggling the PoE state on a given port?  Aka: Port E6: turn off PoE.

 

If it's possible, can someone give a syntax example for the request?

 

 


Hi tbig,

 

There is already a "issue" on GitHub about PoE function

https://github.com/PowerAruba/PowerArubaSW/issues/71

 

There is already the command for get PoE Status...

and it will no be complicated to change status (need to look API docs)

 

I think include PoE for 0.8 or 0.9...

 




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
New Contributor

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API

Just to confirm, does the REST API support a change to the PoE state?
Documentation I saw referenced a post command to the PoE end point, but it
wasn't clear how it works, if at all.

I'd be grateful to see a curl command or anything if it's currently possible
MVP Expert

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API

from the doc, yes it is possible

 

You need to use uri : .../poe/ports/{PortPoe.port_id}/reset with HTTP method "POST"

 




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
New Contributor

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API

Hmm... the only version of the API where I see that endpoint referenced in is from "Aruba REST API Guide for ArubaOSSwitch 16.05"

https://support.hpe.com/hpsc/doc/public/display?docId=a00040422en_us

 

Also, when you get to the end of the section it says:

Note: Applicable only for ArubaOS-Switch 5400R.

 

Are you looking at any other version of the OS or a different API doc?

(Sorry this is my last question!) :D

MVP Expert

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API


@tbig wrote:

Hmm... the only version of the API where I see that endpoint referenced in is from "Aruba REST API Guide for ArubaOSSwitch 16.05"

https://support.hpe.com/hpsc/doc/public/display?docId=a00040422en_us

 

Also, when you get to the end of the section it says:

Note: Applicable only for ArubaOS-Switch 5400R.

 

Are you looking at any other version of the OS or a different API doc?

(Sorry this is my last question!) :D


There is some typo on this doc...

 

You need to look : 16.08 REST API and JSON Schema (for example : https://h10145.www1.hpe.com/downloads/DownloadSoftware.aspx?SoftwareReleaseUId=24618&ProductNumber=JL557A&lang=&cc=&prodSeriesId=&SaidNumber= )




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
New Contributor

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API

Just to close the loop - thanks, the link you provided was a huge help.

We're on 16.03, and I don't see that reset method available (and I get a 404 error when trying it).  I do see it in the 16.08 schema, and we're likely to be upgrading soon to that, at which point I can test further.

 

At any rate, thanks for clearing some of the fog. :D

 

 

MVP Expert

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API


@tbig wrote:

Just to close the loop - thanks, the link you provided was a huge help.

We're on 16.03, and I don't see that reset method available (and I get a 404 error when trying it).  I do see it in the 16.08 schema, and we're likely to be upgrading soon to that, at which point I can test further.

 

At any rate, thanks for clearing some of the fog. :D

 

 


I need to check because i get same strange issue when try PoE reset API...




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
MVP Expert

Re: PowerArubaSW : a powershell module for use ArubaOS Switch REST API

a new release is available (0.8.0)

 

What new ?

14 new cmdlets !

For Trunk, STP, PoE, IP Address (Get only)...

 

There is also the support of AnyCli and cliBatch

For example

 

 

Get-ArubaSWCli -cmd "show running"

and one of major feature of this release it is the support of multi-connection. it is possible to connect to multiple switch on same time using -connection parameter

 

 

for example

 

$sw1 = Connect-ArubaSW 192.168.0.1

$sw2 = Connect-ArubaSW 192.168.0.2

After for get vlans

 

 

 

Get-ArubaSWVlans -connection $sw1

Get-ArubaSWVlans -connection $sw2

More info => https://github.com/PowerAruba/PowerArubaSW/releases/tag/v0.8.0

 




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: