SSH client of switch stops working for the current session after executing Python script

  • 0
  • 1
  • Problem
  • Updated 2 years ago
  • Solved
  • (Edited)
The SSH client available on EXOS stops working for the current session after executing the Python script "mlag_config_check.py" (from https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/mlag_config_check). Logging out and then back in again resolves the issue.

The same happens after running the script "show_port_vid.py" (from https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/show_port_vid), so it seems to be a problem with running (Python) scripts, not with the individual script that first showed the problem.

Reported here as asked on https://github.com/extremenetworks/ExtremeScripting .

Observed on an X620-16t switch with EXOS version 21.1.1.4-patch1-2.

Log:
login: admin
password:

ExtremeXOS
Copyright (C) 1996-2016 Extreme Networks. All rights reserved.
This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts.
==============================================================================

Press the or '?' key at any time for completions.
Remember to save your configuration changes.

X620-16t-PoC_01.1 # ssh2 10.255.255.12
admin@10.255.255.12's password:
ExtremeXOS
Copyright (C) 1996-2016 Extreme Networks. All rights reserved.
This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts.
==============================================================================

Press the or '?' key at any time for completions.
Remember to save your configuration changes.

X620-16t-PoC_02.1 # exit
Connection to 10.255.255.12 closed.
X620-16t-PoC_01.2 # ssh2 10.255.255.12
admin@10.255.255.12's password:
ExtremeXOS
Copyright (C) 1996-2016 Extreme Networks. All rights reserved.
This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts.
==============================================================================

Press the or '?' key at any time for completions.
Remember to save your configuration changes.

X620-16t-PoC_02.1 # exit
Connection to 10.255.255.12 closed.
X620-16t-PoC_01.2 # run script mlag_config_check

****mlag_config_check.py running on MLAG Peer X620-16t-PoC_02****

Local and remote FDB checksums match.
MLAG config check completed.
X620-16t-PoC_01.3 # ssh2 10.255.255.12
sh: ./ssh: Permission denied
X620-16t-PoC_01.4 # exit

login: admin
password:

ExtremeXOS
Copyright (C) 1996-2016 Extreme Networks. All rights reserved.
This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts.
==============================================================================

Press the or '?' key at any time for completions.
Remember to save your configuration changes.

X620-16t-PoC_01.1 # ssh2 10.255.255.12
admin@10.255.255.12's password:
ExtremeXOS
Copyright (C) 1996-2016 Extreme Networks. All rights reserved.
This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts.
==============================================================================

Press the or '?' key at any time for completions.
Remember to save your configuration changes.

X620-16t-PoC_02.1 # exit
Connection to 10.255.255.12 closed.
X620-16t-PoC_01.2 #

Best regards,
Erik
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,782 Points 10k badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,782 Points 10k badge 2x thumb
This happens with every python script, just tested with a python file containing just the statement "True":
X620-16t-PoC_01.4 # ls
-rw-r--r--    1 admin    admin           5 Jun 16 13:17 a_script.py
X620-16t-PoC_01.2 # run script a_script
X620-16t-PoC_01.3 # ssh 10.255.255.12
sh: ./ssh: Permission denied
 
I'll open a case...

Br,
Erik
Photo of Drew C.

Drew C., Community Manager

  • 37,366 Points 20k badge 2x thumb
Well that doesn't sound good.  Opening a case is the right path for this one.  Thanks Erik.
Photo of Brandon Clay

Brandon Clay, Escalation Support Engineer

  • 13,086 Points 10k badge 2x thumb
Hi Erik, I just took ownership of this case. I'll be reaching out shortly.
(Edited)
Photo of Brandon Clay

Brandon Clay, Escalation Support Engineer

  • 13,086 Points 10k badge 2x thumb
As an update for the community, CR xos0064706 was assigned for this issue. We are currently waiting for the fix to be scoped, but once it is I will follow up here to let everyone know where the fix will be included.
Photo of Brandon Clay

Brandon Clay, Escalation Support Engineer

  • 13,086 Points 10k badge 2x thumb
One more update for the community, the fix for this will be included in EXOS 22.1.1, EXOS 16.2.2, EXOS 16.1.4, and the September patch of EXOS 21.1.2.
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,782 Points 10k badge 2x thumb
Thanks for the update!