10-07-2016 03:53 AM
I am using "Air recorder" to gather health state information about our Aruba environment in a scheduled tasks. - It works in general, but sometimes I cannot access via SSH.
I see that the account I am using is already occupying a couple of SSH processes although I already got what I need from "Air recorder".
(aruba04) #show processes | Include ssh
0.0 S 4445 3707 9984 6592 4 0 May21 00:00:00 2b079cc8 /etc/ssh/sshd -D -f /etc/ssh/sshd_config
0.0 S 26098 4445 10240 6976 4 0 11:56 00:00:00 2b079cc8 sshd: arubamonitor@pts/0
0.0 S 26756 4445 10240 6912 4 0 11:58 00:00:00 2b079cc8 sshd: superadmin@pts/0
0.0 S 26836 26756 3392 1408 4 0 11:58 00:00:00 2abc9cc8 -sshwrap
(aruba04) #show clock
Fri Oct 7 12:02:55 MESZ 2016
(aruba04) #show running-config
enable secret "******"
loginsession timeout 1
ID User Name User Role Connection From Idle Time Session Time
-- --------- --------- --------------- --------- ------------
1 superadmin root 172.19.18.77 00:00:00 00:05:53
I changed the loginsession timeout to 1 and this also works, but still I can see the processes.
The "Air recorder" is started with these paramters:
--no-local-timing -t 60 --quit-after 60
Is it possible to set the SSH timeout directly? If yes, please tell me how.
Thanks in advance
10-07-2016 04:08 AM
which version of AirRecorder are you using?
Also is there is a reason why you use -quit-after 60?
(AirRecorder exits automatically when there are no more commands to execute)
Are all AirRecorder processes gone? It could be that there is still some running which could explain why you see a connection on the controller.
Normally "loginsession timeout 1" would terminate idle sessions.
10-07-2016 06:28 AM
I am using "AirRecorder-1.3.14-release.jar". - Is this the most current version?
Reason for timeout and quit-after is just having a try after experiencing that the SSH processes still keep alive for certain time.- No difference if I add those two parameters or not.
AirRecorder already finished it work and I can find the file containing the expected result.
Input file is just one line "0, show switches all", then after a short while I connect again and run again with another input file containing "0, show ap database"; that's it.
10-07-2016 07:12 AM
1.4.2 is the latest and has been recently uploaded to the support site under Tools & Resources. You might want to try it out since it has an updated SSH library version.
With the commands you listed, -quit-after is not needed indeed.
Hope this helps,
10-16-2016 09:59 PM
I tried the latest version. The behavior keeps same; after 10 minutes the SSH process under which my query was performed still shows up.
The loginsession are fine after the adjusted timeout of 1 minute.
However I workaround the problem by changing my script a little.
Thanks for your support.
11-17-2016 05:46 PM
hope you are doing fine. - Do you have some news about my problem?
We are extending our Aruba infrastructure currently so this topic is becoming interesting again.
Thank you very much
11-18-2016 09:51 AM
I tried reproducing this with my 3200XM running 18.104.22.168 without luck. I tested the cases where I:
- terminate AirRecorder with CTRL-C
- kill the process with kill -9
- with -quit-after specified
In all 3 cases, the loginsession disappears quickly from the controller.
I am running on MacOS with Java version "1.8.0_92"
Which OS are you running AirRecorder on? And which java version?
11-20-2016 07:07 PM
I am running the AirRecorder on Windows 7 and also on a Windows Server 2008 R2. I tried with version jdk1.6.0_45 and version jre1.8.0_102 both with same effects.
You are right, the loginsessions disappear quickly, hover the inidividual- processes keep for 15 minutes around when I check it with: 'show processes | include ssh'
After connecting a few times I cannot login anymore and need to wait until the login-session-processes disappear. - That takes usually thant 15 minutes, no mater what I previoulsy configured.
Hope that describes my problem better :-)