Dell os10 switch fails ssh autodetect
See original GitHub issueHi–I’m seeing an issue with SSHDetect.autodetect() on a few dell os10 switches.
Example code:
from netmiko import SSHDetect, ConnectHandler
from getpass import getpass
device = {
"device_type": "autodetect",
"host": "switch_ip",
"username": "admin",
"password": getpass(),
}
guesser = SSHDetect(**device)
best_match = guesser.autodetect()
print(best_match) # Name of the best device_type to use further
If switch_ip is an os9 switch best_match is dell_os9
; if its an os10 switch I get None
. Here is a the full show version
output I see when I manually ssh into the os10 switch:
Dell EMC Networking OS10 Enterprise
Copyright (c) 1999-2019 by Dell Inc. All Rights Reserved.
OS Version: 10.5.0.0P1
Build Version: 10.5.0.0P1.342
Build Time: 2019-08-12T22:06:43+0000
System Type: Z9332F-ON
Architecture: x86_64
Up Time: 5 weeks 5 days 20:55:31
I’m not sure exactly at which level this is breaking; I’ll update if I find out anything more.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Dell EMC Networking OS10 Switches How to Enable/Disable ...
Command. Explanation ; OS10#configure terminal. To enter into switch configuration mode ; OS10(config)# ip ssh server enable. Enable SSH server.
Read more >OS10 Enterprise Edition User Guide Release 10.4.2.0 - Dell
SSH commands. ... Sample FC Switch configuration on non-VLT network. ... CAUTION: During an automatic or manual OS10 installation, if an error condition ......
Read more >OS10 Enterprise Edition User Guide Release 10.4.0E_R2 - Dell
SSH commands. ... Forward error correction. ... Install OS10 on a Dell EMC ONIE switch without an operating system (OS) or license installed:....
Read more >Dell EMC Networking N-Series Switches User Guide version ...
Dell EMC Networking N-Series switches support HTTP and HTTPS over IPv4 or IPv6. • Use a Telnet client, SSH client, or a direct...
Read more >PowerEdge MX I/O Modules - Release 10.4.0E(R3S) - Dell
OS10 image for MX Ethernet I/O modules. ... Change to transaction-based configuration. ... SSH commands.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes I was thinking that too; I’ve confirmed that moving a
show version
to the top does prevent this from happening. Unfortunately means that with each reordering of that dictionary we risk introducing bugs on some other switch OS. With that said–since this hasn’t been reported before, so dell_os10 could be the only switch that has this issue and a simple reordering (while a less-than ideal solution) might be an appropriate fix.Proposed fix is here:
https://github.com/ktbyers/netmiko/pull/2032
In the PR, the commands are executed based on their frequency (so “show version” is first).