Closed loibi closed 5 years ago
Hi,
What release do you are using ?
Get-Module PowerArubaSW
What the switch and firmware ?
There is a "REST Timeout" (300 secs by default if remember), and it is may this problem (but you have a warning on this case...)
You can get this REST Timeout
Get-ArubaSWRestSessionTimeout
and configure
Set-ArubaSWRestSessionTimeout -timeout 7200
Hi 0.5 Firmware 16.07 have the default Timeout to 300 Secs
Strange thing - in Switch logs I get "no free REST Sessions available"
Only getting the error when trying to run it from our Monitoring Tool in Background - not in interactive Windows Session. Also need to be logged out from Web Interface to get it working
Hi,
Ok ! it is because you don't disconnect your session and it is limited to 5 sessions Add
Disconnect-ArubaSW (-noconfirm)
at the end of your script
or look to reuse the same session (look $DefaultArubaSWConnection global variable)
Hi. Tried that already, but still got same behaviour. Looks like some session Problems?
From: Alexis La Goutte notifications@github.com Sent: Tuesday, November 13, 2018 2:38:20 PM To: PowerAruba/PowerArubaSW Cc: loibi; Author Subject: Re: [PowerAruba/PowerArubaSW] Unable to connect (#49)
Hi,
Ok ! it is because you don't disconnect your session and it is limited to 5 sessions Add
Disconnect-ArubaSW (-noconfirm)
at the end of your script
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPowerAruba%2FPowerArubaSW%2Fissues%2F49%23issuecomment-438268485&data=02%7C01%7C%7C111e0fc9abf148f0124d08d6496d4d51%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777131124933938&sdata=lamAhim%2BgZRULTTmfXFFYDghdxEgFO4Uxusvzko4wJU%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdL5wMfjZDXLVvBz7_Vi9aDr5W9LO0hqks5uustMgaJpZM4YbDC1&data=02%7C01%7C%7C111e0fc9abf148f0124d08d6496d4d51%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777131124933938&sdata=NRGbzlEj52EIBccOY7GJyQRkLLvjxQy8ErbpgjwmFpo%3D&reserved=0.
I try and get the same issue when launch more of 5 sessions... but if i use Disconnect-ArubaSW it is working for me (with 16.06 firmware)
Do you are sure don't have forget to disconnect on your code ?
Tried – still getting the same ☹
Using the Script from interactive Windows RDP Session -> OK Using it on the same Server via the Monitoring Software -> Unable to Login and no rest Sessions in Events
Dont understand why
Von: Alexis La Goutte notifications@github.com Gesendet: Tuesday, November 13, 2018 3:24:38 PM An: PowerAruba/PowerArubaSW Cc: loibi; Author Betreff: Re: [PowerAruba/PowerArubaSW] Unable to connect (#49)
I try and get the same issue when launch more of 5 sessions... but if i use Disconnect-ArubaSW it is working for me (with 16.06 firmware)
Do you are sure don't have forget to disconnect on your code ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPowerAruba%2FPowerArubaSW%2Fissues%2F49%23issuecomment-438283706&data=02%7C01%7C%7Ca2c522a6c0d04aad246b08d64973c1df%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777158847158858&sdata=l%2BV5UsdkMXB7muRcA2zrIIXNHResMzeyyVzmTcruAJc%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdL5wCrqM5-kEG258R6mllU2LKXsnxUJks5uutYlgaJpZM4YbDC1&data=02%7C01%7C%7Ca2c522a6c0d04aad246b08d64973c1df%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777158847158858&sdata=VD0iDYVrT7I5wRJhyQipKnfKIw9DSBoWruL8raz83iw%3D&reserved=0.
I think I found something.
When it does not work: Getting 2 Event entries with xx logged in from REST on the switch. But Output from the Script is: VERBOSE: POST http://switch/rest/v4/login-sessions with -1-byte payload VERBOSE: received -1-byte response of content type application/json Unable to connect
So Login ist ok but then something happens and whole script breaks?
When this happens 3 Times then I am above the 5 Sessions because script does not come to the disconnect at the end
Von: Andreas Loibingdorfer loibi2@hotmail.com Gesendet: Tuesday, November 13, 2018 5:23:17 PM An: PowerAruba/PowerArubaSW Betreff: AW: [PowerAruba/PowerArubaSW] Unable to connect (#49)
Tried – still getting the same ☹
Using the Script from interactive Windows RDP Session -> OK Using it on the same Server via the Monitoring Software -> Unable to Login and no rest Sessions in Events
Dont understand why
Von: Alexis La Goutte notifications@github.com Gesendet: Tuesday, November 13, 2018 3:24:38 PM An: PowerAruba/PowerArubaSW Cc: loibi; Author Betreff: Re: [PowerAruba/PowerArubaSW] Unable to connect (#49)
I try and get the same issue when launch more of 5 sessions... but if i use Disconnect-ArubaSW it is working for me (with 16.06 firmware)
Do you are sure don't have forget to disconnect on your code ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPowerAruba%2FPowerArubaSW%2Fissues%2F49%23issuecomment-438283706&data=02%7C01%7C%7Ca2c522a6c0d04aad246b08d64973c1df%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777158847158858&sdata=l%2BV5UsdkMXB7muRcA2zrIIXNHResMzeyyVzmTcruAJc%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdL5wCrqM5-kEG258R6mllU2LKXsnxUJks5uutYlgaJpZM4YbDC1&data=02%7C01%7C%7Ca2c522a6c0d04aad246b08d64973c1df%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777158847158858&sdata=VD0iDYVrT7I5wRJhyQipKnfKIw9DSBoWruL8raz83iw%3D&reserved=0.
Ok strange...
What it your Monitoring Software ? Do you have change some stuff because we use v3 for login-sessions actually on PowerArubaSW code
tried to change it to v4 for testing, no difference. you doing 2 logins at connect? cause i get 2 in the event log
From: Alexis La Goutte notifications@github.com Sent: Tuesday, November 13, 2018 9:05:00 PM To: PowerAruba/PowerArubaSW Cc: loibi; Author Subject: Re: [PowerAruba/PowerArubaSW] Unable to connect (#49)
Ok strange...
What it your Monitoring Software ? Do you have change some stuff because we use v3 for login-sessions actually on PowerArubaSW code
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPowerAruba%2FPowerArubaSW%2Fissues%2F49%23issuecomment-438417212&data=02%7C01%7C%7C5db1618b5e8e4cc967cd08d649a34c4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777363037980122&sdata=t144tk0QrjIPwApuAi6KiuVLnUJSqTEYxrDuxDHBt8A%3D&reserved=0, or mute the threadhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdL5wJbGo1_sOmMa1fyTk-PVWxhXLdmcks5uuyXsgaJpZM4YbDC1&data=02%7C01%7C%7C5db1618b5e8e4cc967cd08d649a34c4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636777363037980122&sdata=MoMudlK%2FHbfNGV8uAelBMvjs9K%2Br4puBESZO2L27ZKw%3D&reserved=0.
No, there is no 2 connect
there is some other query (get) but can be disable with -noverbose
With next version (0.6), there is a enhance to be more fast (via Disable HTTP KeepAlive...)
Can you send me a email (my email is available on the top of ps1 file like https://github.com/PowerAruba/PowerArubaSW/blob/master/PowerArubaSW/Public/Connection.ps1 )
Patch for add -usebasicparsing and enhance info when fail to connect are merged and it will be available on 0.6
Got some weird Issues with Connection.
Can connect to the switch. But when I want to connect again with the same Creds after some Minutes it just says "Unable to connect" After w8ing for 1 Day it works again for some time Any Ideas?