question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dell os10 switch fails ssh autodetect

See original GitHub issue

Hi–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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sregistercommented, Oct 21, 2020

I guess we could potentially re-order such that show version comes first…and show system comes after that.

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.

0reactions
ktbyerscommented, Nov 7, 2020

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found