Developer

last person joined: 7 days ago 

Expand all | Collapse all

Reset PoE Port (on Aruba Switch)

This thread has been viewed 9 times
  • 1.  Reset PoE Port (on Aruba Switch)

    MVP GURU
    Posted Apr 15, 2019 10:32 AM

    Hi,

     

    I try to reset PoE but don't work

     

    From doc :

    POST.../poe/ports/{PortPoe.port_id}/resetN/AN/AReset the PoE controller to which the port belongs.

    i try this :

     

    Invoke-ArubaSWWebRequest -method "post" -uri "rest/v4/poe/ports/5/reset"

    using PowerArubaSW

     

    and i get the always the last POST request...

    StatusCode        : 201
    StatusDescription : Created
    Content           : {"uri":"/login-sessions","cookie":"sessionId=Ur1lQKWWWB1AIQnOIpxdJQxim9aBKvyyilWQPY532eAuDBGifaCbJ410vpffYES"}
    RawContent        : HTTP/1.1 201 Created
                        Server: eHTTP
                        Server: v2.0
                        Connection: close
                        Transfer-Encoding: chunked
                        RequestId:
                        Content-Type: application/json
    
                        {"uri":"/login-sessions","cookie":"sessionId=Ur1lQKWWWB...
    Headers           : {[Server, System.String[]], [Connection, System.String[]], [Transfer-Encoding, System.String[]], [RequestId, System.String[]]...}
    Images            : {}
    InputFields       : {}
    Links             : {}
    RawContentLength  : 110
    RelationLink      : {}

     

    Tested with Aruba 2530 with last firmware (16.08.0002)



  • 2.  RE: Reset PoE Port (on Aruba Switch)

    EMPLOYEE
    Posted Apr 16, 2019 06:26 PM

    Hi Alagoutte!

    I just used Postman to verify the REST command and I received a 204 response and validated that a connected AP does lose PoE and reset:AOS-Switch Postman PoE Reset.PNG

    I verified that this works with the v4 URI as well as with "/poe/ports/5/reset" to reset the interface.

     

    It looks like the response you're getting is to the session creation.  Could it be that it is logging in, and not sending the next request, so the response is only from the login?

     

    Thanks,

    Alvin



  • 3.  RE: Reset PoE Port (on Aruba Switch)

    MVP GURU
    Posted Apr 17, 2019 01:29 PM

    Hi,

     

    I will try with postman

     

    What the good URI ? because on your screenshot you use a another URI comparing to the doc (v4...)

     

    you try what switch and firmware ?

     

    Only need to post with no payload (after connect to the switch...)



  • 4.  RE: Reset PoE Port (on Aruba Switch)

    EMPLOYEE
    Posted Apr 18, 2019 12:50 PM

    Hi Alagouette,

    I just ran the test again against switch version WC.16.08.0002, with the Method and URI:

    POST https://10.6.6.18/rest/v6/poe/ports/5/reset

     

    This was based on the REST schema for v6:

    POST.../poe/ports/{PortPoe.port_id}/reset

    In my earlier post where I ran with v4 as well, that was against 16.08.0001.

     

    Thanks,

    Alvin



  • 5.  RE: Reset PoE Port (on Aruba Switch)

    MVP GURU
    Posted Apr 19, 2019 08:02 AM

    What switch model ?

     

    i get now :

    Error details: {"message":"Invalid input: poe-reset"}


  • 6.  RE: Reset PoE Port (on Aruba Switch)

    EMPLOYEE
    Posted Apr 22, 2019 03:26 PM

    Hi Alagoutte,

    My previous example was running this on a JL323A Aruba 2930M 40G 8 HPE Smart Rate PoE+ switch.

     

    Unfortunately I didn't have a 2530 with PoE to test against, but I did run another test against a JL356A Aruba-2540-24G-PoEP-4SFPP

    running YC.16.08.0002Capture.PNG

     

     

    Are you getting that message from the REST response?  I'm unsure where the phrase "poe-reset" is coming from since the URI only has reset as the pointer.

     

    Thanks,

    Alvin



  • 7.  RE: Reset PoE Port (on Aruba Switch)

    MVP GURU
    Posted Apr 23, 2019 05:39 AM

    Yes coming from REST response, i will make some other test this week...



  • 8.  RE: Reset PoE Port (on Aruba Switch)

    MVP GURU
    Posted Apr 25, 2019 02:18 AM

    Try with POSTMAN and 2930F (with VSF enable and firmware 16.08.0001) always get the same issue..

     



  • 9.  RE: Reset PoE Port (on Aruba Switch)

    MVP GURU
    Posted Oct 18, 2019 07:40 AM

    Always the same issue with 16.09.0003...

     

    Any idea ?



  • 10.  RE: Reset PoE Port (on Aruba Switch)

    MVP GURU
    Posted Apr 02, 2020 12:06 PM

    A feedback...

     

    don't working with 2530... and issue is fixing with last firmware for other platform (a issue with PowerShell and Content-length set to 0..)