Connection problems with plink (putty for commandline) to EOS devices
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-20-2016 06:15 PM
Hello all,
I want to connect to EOS devices with plink (the command line version of putty).
I need plink because I will use the communicaton in scripts on my PC.
With XOS all works fine. For example I use this command:
"plink ip –l user –pw passwort show switch" => I receive the expected result
On EOS I use:
"plink ip –l user –pw passwort show system" => I receive Error: „FATAL ERROR: Server sent disconnect message.
Same behaviour if I use a config-file with the CLI-commands (like show system) instead of the CLI-command in the plink command line.
If I use the command:
"plink ip –l user –pw passwort" (without a CLI command) I receive no error but an oben CLI-session and can manualy set command on the open CLI-session.
Now the quesion. Does anybody know how I can connect to EOS via plink?
Best regards
Stephan
I want to connect to EOS devices with plink (the command line version of putty).
I need plink because I will use the communicaton in scripts on my PC.
With XOS all works fine. For example I use this command:
"plink ip –l user –pw passwort show switch" => I receive the expected result
On EOS I use:
"plink ip –l user –pw passwort show system" => I receive Error: „FATAL ERROR: Server sent disconnect message.
Same behaviour if I use a config-file with the CLI-commands (like show system) instead of the CLI-command in the plink command line.
If I use the command:
"plink ip –l user –pw passwort" (without a CLI command) I receive no error but an oben CLI-session and can manualy set command on the open CLI-session.
Now the quesion. Does anybody know how I can connect to EOS via plink?
Best regards
Stephan
Regards
Stephan
9 REPLIES 9
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-15-2016 08:00 AM
Hello Erik,
your workaround works ( in Windows, too).
Thank you for help.
Best regards
Stephan
your workaround works ( in Windows, too).
Thank you for help.
Best regards
Stephan
Regards
Stephan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎11-03-2016 03:38 PM
Hi Stephan,
I do not have a simple workaround for the S-Series. 😞
The following Expect script works for me on Ubuntu GNU/Linux with an SSA set up with IP address 10.0.0.101 and user account admin:password:
#! /usr/bin/expect spawn ssh admin@10.0.0.101 expect { {word:?} {send "password\r"} } expect { {)->} {send "show system\r"} } expect { {)->} {send "exit\r"} } exit
I have never tried Expect on Windows.
The above script is just a proof-of-concept, it is not robust or production ready.
Best regards,
Erik
I do not have a simple workaround for the S-Series. 😞
The following Expect script works for me on Ubuntu GNU/Linux with an SSA set up with IP address 10.0.0.101 and user account admin:password:
#! /usr/bin/expect spawn ssh admin@10.0.0.101 expect { {word:?} {send "password\r"} } expect { {)->} {send "show system\r"} } expect { {)->} {send "exit\r"} } exit
I have never tried Expect on Windows.
The above script is just a proof-of-concept, it is not robust or production ready.
Best regards,
Erik
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-28-2016 10:47 AM
Hello Erik,
thank you for the very good hint.
It works quite nice with a b-series switch and version 6.61.08.0013
but not with a s-series switch and version 8.42.02.0012
On the s-series the output looks like:
----------------------------------------
echo show system | plink.exe IP -l USER -pw PASSWORD
B O N D E D S 4 C H A S S I S Command Line Interface
Extreme Networks, Inc.
145 Rio Robles
San Jose, CA 95134
Phone: +1 408 579-2800
E-mail: support@extremenetworks.com
WWW: http://www.extremenetworks.com
(c) Copyright Extreme Networks, Inc. 2016
Chassis Serial Number: 141xxxx
Chassis Firmware Revision: 08.42.02.0012
-----------------------
Nothing more!!!
Maybe you have one more good idea?
Stephan
thank you for the very good hint.
It works quite nice with a b-series switch and version 6.61.08.0013
but not with a s-series switch and version 8.42.02.0012
On the s-series the output looks like:
----------------------------------------
echo show system | plink.exe IP -l USER -pw PASSWORD
B O N D E D S 4 C H A S S I S Command Line Interface
Extreme Networks, Inc.
145 Rio Robles
San Jose, CA 95134
Phone: +1 408 579-2800
E-mail: support@extremenetworks.com
WWW: http://www.extremenetworks.com
(c) Copyright Extreme Networks, Inc. 2016
Chassis Serial Number: 141xxxx
Chassis Firmware Revision: 08.42.02.0012
-----------------------
Nothing more!!!
Maybe you have one more good idea?
Stephan
Regards
Stephan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-28-2016 09:30 AM
Hi Stephan,
you can use the following workaround:
echo show system | plink.exe IP -l USER -pw PASSWORD (even on Windows)
Erik
you can use the following workaround:
echo show system | plink.exe IP -l USER -pw PASSWORD (even on Windows)
Erik
