aruba_os ssh connection issue / send_command_expect
See original GitHub issueHi,
I’ve discover this weekend Netmiko and started to code some basic script that will run a certain command file based on show version, i.e: either it’s a Cisco / HP / or Aruba, I can confirm that the script is successfully working for a IOS, but I was testing the connection with aruba and somwhow the script output the following:
Checking for 7150
Traceback (most recent call last):
File "nettools6.py", line 70, in <module>
output_version = net_connect.send_command('show version')
File "/usr/local/lib/python2.7/site-packages/netmiko/base_connection.py", line 1188, in send_command
search_pattern))
IOError: Search pattern never detected in send_command_expect: SSH\@BOH\-switch\#
while it seems that the SSH session is connection is established however the script cannot run the show version,
I’ve try different device_type ( aruba_os / brocade_fastiron ) mainly but no go - models used is an Brocade ICX7150-48
here is the script, at this point it might be an issue on how I handle different model type of switch ( I’m working in a variety of switches from Cisco to HP to ICX
pastebin of the script itself: https://pastebin.com/rWcfKVjk
the code might need a bit of cleanup but it’s work in progress, any suggestion would be welcome
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (7 by maintainers)
Top GitHub Comments
Looks like we have a positive result in using ruckus_fastiron I can get the show version display, I need to troubleshoot the code since it return some other error ( I’m sure my way of handeling multiple model is wrong)
Traceback (most recent call last): File “nettools6.py”, line 97, in <module> print output NameError: name ‘output’ is not defined
thanks, I’ll try to debug mine as it seems to be stuck somewhere down there, I’m not a python pro but I’ll see what I can do, thanks again!
Checking the software/type version