Is there a way to reset the REST session count or change the limit for ArubaOS Switch?
I just started to play around with python and the REST API and after a few tries I'm getting Error 503
Idle timeout seems to be defaulted to 120 seconds
The sessions limit is set to 5 simultaneous sessions, and it can't be changed.
In order to reset your sessions on the switch, you can do a :
1. no rest-interface
Resetting the Rest Interface will also reset your REST sessions.
Or as you said, you call also play with the session timeout.
Can I have more sesssion if I reuse the session/authentication cookie or is this a total of max 5 sessions?
it is max 5 sessions (or cookie)
but you can reuse session (and it is recommanded...)
When you open a session, you get a cookie from the switch.
So reuse it for all your requests in your script, and don't forget to close your session once you're done.
If you're using Python, don't forget to use the try/except/finally blocks in your script - it will avoid to use a new session each time you relaunch your switch because your previous test failed.
Is there an equivalent for Aruba CX? I am troubleshooting an issue and the session keeps reaching the max which is frustrating. I guess the code isn't closing the session properly and so it's an infinite loop of frustration while debugging.
Yes, you can use the following command :
switch-cx# https-server session close all
It will close all the sessions already opened through HTTPS.
@dregoriuss wrote:Idle timeout seems to be defaulted to 120 seconds
It is no 300seconds by default ?
You can use rest/v4/session-idle-timeout for change this (the max value is 7200)
At Aruba, we believe that the most dynamic customer experiences happen at the Edge. Our mission is to deliver innovative solutions that harness data at the Edge to drive powerful business outcomes.
© Copyright 2021 Hewlett Packard Enterprise Development LPAll Rights Reserved.