Wireless Access

 View Only
last person joined: 8 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.

ArubaOS Virtual Mobility Conductor API Logout not sucessfully

This thread has been viewed 1 times
  • 1.  ArubaOS Virtual Mobility Conductor API Logout not sucessfully

    Posted 4 days ago

    Hi,

    I have used the login and logout procedure from this:
    Authentication (arubanetworks.com)

    But logout seems not to work

    login:

    curl.exe --insecure -c "C:\_IT\aruba-cookie" -d "username=NAME&password=PASS" https://v-it142.ewr.local:4343/v1/api/login >C:\_IT\aruba-token.txt
    ==>
    {"_global_result": {"status":"0", "status_str": "You've logged in successfully.", "UIDARUBA":"M2E4MWU2NjUtY2RjZi00NWIxLWI2OWUtMzZm", "X-CSRF-Token":"ZDc3NWEwNTAtMzYxZi00ZTQ4LTgzYzAtYjU4"}}
    


    Request okay:

    curl.exe --insecure -b "C:\_IT\aruba-cookie" -X GET -i --header "X-CSRF-Token:%TOKEN%" https://v-it142.ewr.local:4343/v1/configuration/showcommand?command=show+global-user-table+count | find "The number of global users" >C:\_IT\TotalNumOfWlanClients.txt
    ==>
        "The number of global users : 155"


    Logout seems to be okay:

    curl.exe --insecure -c "C:\_IT\aruba-cookie" https://v-it142.ewr.local:4343/v1/api/logout >C:\_IT\aruba-logout.txt
    or
    curl.exe --insecure -c "C:\_IT\aruba-cookie" -d "username=NAME&password=PASS" https://v-it142.ewr.local:4343/v1/api/logout >C:\_IT\aruba-logout.txt
    ==>
    {"_global_result": {"status":"0", "status_str": "You've been logged out successfully.", "UIDARUBA":"(null)", "X-CSRF-Token":"(null)"}}

    BUT, lokking ath the cli shows, that the connections does not have been terminated. So sometimes I cant login to the WebGUI anymore, because the maximum number of sessions has been reached...:

    Any idea what is going wrong?
    It is a batched scheduled Request every minute, and of course the loginsession should be closed at the end...

    Thanks and kind regards

    Robert