ssh_autodetect returns 'none' for ask9k1
See original GitHub issueHi, I wrote a script to test the ‘ssh_autodetect feature’. It works for all my device types except my ASR-9001 devices. Here is the code and output:
from getpass import getpass
from netmiko.ssh_autodetect import SSHDetect
from netmiko.ssh_dispatcher import ConnectHandler
import netmiko
password = getpass('password: ')
spoke_router = '<omitted>'
username = '<omitted>'
def find_equipment_os(dev_hostname):
remote_device = {'device_type': 'autodetect',
'host': dev_hostname,
'username': username, 'password': password,
'session_log': 'netmiko_session.log'}
guesser = SSHDetect(**remote_device)
best_match = guesser.autodetect()
print(best_match) # Name of the best device_type to use further
print(guesser.potential_matches) # Dictionary of the whole matching result
print(type(best_match))
return(best_match)
def main():
try:
find_equipment_os(spoke_router)
except netmiko.ssh_exception.NetMikoTimeoutException:
exit( '[ERROR] Connection to ' + spoke_router + ' timed out.')
if __name__ == "__main__":
main()`
The output looks like:
None
{}
<class 'NoneType'>
Logs for the script are:
RP/0/RSP0/CPU0:<hostname-omitted>#show system
% Incomplete command.
RP/0/RSP0/CPU0:<hostname-omitted>#show version
Tue Apr 21 12:18:22.166 PDT
[K
Cisco IOS XR Software, Version 6.2.3[Default]
Copyright (c) 2017 by Cisco Systems, Inc.
ROM: System Bootstrap, Version 3.04(20160331:102636) [ASR9K ROMMON],
<hostname-omitted> uptime is 1 year, 49 weeks, 3 days, 17 hours, 5 minutes
System image file is "bootflash:disk0/asr9k-os-mbi-6.2.3/0x100000/mbiasr9k-rp.vm"
cisco ASR9K Series (P4040) processor with 8388608K bytes of memory.
P4040 processor at 1500MHz, Revision 3.0
ASR-9001 Chassis
2 Management Ethernet
20 GigabitEthernet
8 TenGigE
8 DWDM controller(s)
8 WANPHY controller(s)
219k bytes of non-volatile configuration memory.
2868M bytes of hard disk.
3915760k bytes of disk0: (Sector size 512 bytes).
Configuration register on node 0/RSP0/CPU0 is 0x2102
[K --More-- [K
RP/0/RSP0/CPU0:<hostname-omitted>#how sys version
^
% Invalid input detected at '^' marker.
RP/0/RSP0/CPU0:<hostname-omitted>#cat /etc/issue
^
% Invalid input detected at '^' marker.
RP/0/RSP0/CPU0:<hostname-omitted>#display version
^
% Invalid input detected at '^' marker.
RP/0/RSP0/CPU0:<hostname-omitted>#uname -a
^
% Invalid input detected at '^' marker.
RP/0/RSP0/CPU0:<hostname-omitted>#`
Show version output is:
RP/0/RSP0/CPU0:<hostname-omitted>#sh ver
Tue Apr 21 12:21:53.334 PDT
Cisco IOS XR Software, Version 6.2.3[Default]
Copyright (c) 2017 by Cisco Systems, Inc.
ROM: System Bootstrap, Version 3.04(20160331:102636) [ASR9K ROMMON],
<hostname-omitted> uptime is 1 year, 49 weeks, 3 days, 17 hours, 8 minutes
System image file is "bootflash:disk0/asr9k-os-mbi-6.2.3/0x100000/mbiasr9k-rp.vm"
cisco ASR9K Series (P4040) processor with 8388608K bytes of memory.
P4040 processor at 1500MHz, Revision 3.0
ASR-9001 Chassis
2 Management Ethernet
20 GigabitEthernet
8 TenGigE
8 DWDM controller(s)
8 WANPHY controller(s)
219k bytes of non-volatile configuration memory.
2868M bytes of hard disk.
3915760k bytes of disk0: (Sector size 512 bytes).
Configuration register on node 0/RSP0/CPU0 is 0x2102
Boot device on node 0/RSP0/CPU0 is disk0:
Package active on node 0/RSP0/CPU0:
asr9k-9000v-nV-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-9000v-nV-supp-6.2.3
Built on Thu Dec 21 21:19:54 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-9000v-nV-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-9000v-nV-px-6.2.3
Built on Thu Dec 21 21:19:58 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-bng, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-bng-6.2.3
Built on Thu Dec 21 21:19:01 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-bng, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-bng-6.2.3
Built on Thu Dec 21 21:19:01 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-bng-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-bng-px-6.2.3
Built on Thu Dec 21 21:19:08 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9K-doc-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9K-doc-supp-6.2.3
Built on Thu Dec 21 21:19:09 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-doc-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-doc-px-6.2.3
Built on Thu Dec 21 21:19:13 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-fpd, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-fpd-6.2.3
Built on Thu Dec 21 21:19:15 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-fpd-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-fpd-px-6.2.3
Built on Thu Dec 21 21:19:40 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-security, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-security-6.2.3
Built on Fri Dec 22 01:05:49 PST 2017
By iox-lnx-051 in /san1/production/6.2.3/asr9k-px/workspace for pie
asr9k-k9sec-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-k9sec-supp-6.2.3
Built on Fri Dec 22 01:05:49 PST 2017
By iox-lnx-051 in /san1/production/6.2.3/asr9k-px/workspace for pie
asr9k-k9sec-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-k9sec-px-6.2.3
Built on Fri Dec 22 01:05:56 PST 2017
By iox-lnx-051 in /san1/production/6.2.3/asr9k-px/workspace for pie
iosxr-li, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-li-6.2.3
Built on Thu Dec 21 21:54:29 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-li, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-li-6.2.3
Built on Thu Dec 21 21:54:29 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-li-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-li-px-6.2.3
Built on Thu Dec 21 21:54:31 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-mcast, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-mcast-6.2.3
Built on Thu Dec 21 21:03:15 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mcast-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mcast-supp-6.2.3
Built on Thu Dec 21 21:03:15 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mcast-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mcast-px-6.2.3
Built on Thu Dec 21 21:03:23 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-mgbl, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-mgbl-6.2.3
Built on Thu Dec 21 21:03:25 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mgbl-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mgbl-supp-6.2.3
Built on Thu Dec 21 21:03:25 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mgbl-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mgbl-px-6.2.3
Built on Thu Dec 21 21:03:40 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-infra, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-infra-6.2.3
Built on Thu Dec 21 20:57:47 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-fwding, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-fwding-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-routing, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-routing-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-diags, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-diags-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-ce, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-ce-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-gcp-fwding, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-gcp-fwding-6.2.3
Built on Thu Dec 21 20:57:52 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-common-pd-fib, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-common-pd-fib-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-os-mbi, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-os-mbi-6.2.3
Built on Thu Dec 21 20:58:55 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-base, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-base-6.2.3
Built on Thu Dec 21 20:57:53 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-fwding, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-fwding-6.2.3
Built on Thu Dec 21 20:57:56 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-diags-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-diags-supp-6.2.3
Built on Thu Dec 21 20:57:59 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-scfclient, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-scfclient-6.2.3
Built on Thu Dec 21 20:58:00 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-cpp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-cpp-6.2.3
Built on Thu Dec 21 20:57:50 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-ce, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-ce-6.2.3
Built on Thu Dec 21 20:57:59 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mini-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mini-px-6.2.3
Built on Thu Dec 21 21:02:55 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-mpls, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-mpls-6.2.3
Built on Thu Dec 21 21:03:02 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mpls-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mpls-px-6.2.3
Built on Thu Dec 21 21:03:13 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-optics-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-optics-supp-6.2.3
Built on Thu Dec 21 21:19:44 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-optic-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-optic-px-6.2.3
Built on Thu Dec 21 21:19:45 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-service, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-service-6.2.3
Built on Thu Dec 21 21:19:50 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-service-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-service-supp-6.2.3
Built on Thu Dec 21 21:19:50 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-services-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-services-px-6.2.3
Built on Thu Dec 21 21:19:53 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-adv-video, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-adv-video-6.2.3
Built on Thu Dec 21 21:19:46 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-adv-video-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-adv-video-supp-6.2.3
Built on Thu Dec 21 21:19:46 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-video-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-video-px-6.2.3
Built on Thu Dec 21 21:19:48 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-services-infra, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-services-infra-6.2.3
Built on Thu Dec 21 22:24:15 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
Boot device on node 0/0/CPU0 is mem:
Package active on node 0/0/CPU0:
iosxr-bng, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-bng-6.2.3
Built on Thu Dec 21 21:19:01 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-bng, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-bng-6.2.3
Built on Thu Dec 21 21:19:01 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-bng-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-bng-px-6.2.3
Built on Thu Dec 21 21:19:08 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-security, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-security-6.2.3
Built on Fri Dec 22 01:05:49 PST 2017
By iox-lnx-051 in /san1/production/6.2.3/asr9k-px/workspace for pie
asr9k-k9sec-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-k9sec-supp-6.2.3
Built on Fri Dec 22 01:05:49 PST 2017
By iox-lnx-051 in /san1/production/6.2.3/asr9k-px/workspace for pie
asr9k-k9sec-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-k9sec-px-6.2.3
Built on Fri Dec 22 01:05:56 PST 2017
By iox-lnx-051 in /san1/production/6.2.3/asr9k-px/workspace for pie
iosxr-li, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-li-6.2.3
Built on Thu Dec 21 21:54:29 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-li, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-li-6.2.3
Built on Thu Dec 21 21:54:29 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-li-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-li-px-6.2.3
Built on Thu Dec 21 21:54:31 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-mcast, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-mcast-6.2.3
Built on Thu Dec 21 21:03:15 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mcast-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mcast-supp-6.2.3
Built on Thu Dec 21 21:03:15 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mcast-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mcast-px-6.2.3
Built on Thu Dec 21 21:03:23 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-infra, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-infra-6.2.3
Built on Thu Dec 21 20:57:47 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-fwding, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-fwding-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-routing, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-routing-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-diags, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-diags-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-ce, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-ce-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-gcp-fwding, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-gcp-fwding-6.2.3
Built on Thu Dec 21 20:57:52 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-common-pd-fib, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-common-pd-fib-6.2.3
Built on Thu Dec 21 20:57:49 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-os-mbi, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-os-mbi-6.2.3
Built on Thu Dec 21 20:58:55 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-base, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-base-6.2.3
Built on Thu Dec 21 20:57:53 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-fwding, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-fwding-6.2.3
Built on Thu Dec 21 20:57:56 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-diags-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-diags-supp-6.2.3
Built on Thu Dec 21 20:57:59 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-scfclient, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-scfclient-6.2.3
Built on Thu Dec 21 20:58:00 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-cpp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-cpp-6.2.3
Built on Thu Dec 21 20:57:50 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-ce, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-ce-6.2.3
Built on Thu Dec 21 20:57:59 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mini-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mini-px-6.2.3
Built on Thu Dec 21 21:02:55 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-mpls, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-mpls-6.2.3
Built on Thu Dec 21 21:03:02 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-mpls-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-mpls-px-6.2.3
Built on Thu Dec 21 21:03:13 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-optics-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-optics-supp-6.2.3
Built on Thu Dec 21 21:19:44 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-optic-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-optic-px-6.2.3
Built on Thu Dec 21 21:19:45 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-service, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-service-6.2.3
Built on Thu Dec 21 21:19:50 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-service-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-service-supp-6.2.3
Built on Thu Dec 21 21:19:50 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-services-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-services-px-6.2.3
Built on Thu Dec 21 21:19:53 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
iosxr-adv-video, V 6.2.3[Default], Cisco Systems, at disk0:iosxr-adv-video-6.2.3
Built on Thu Dec 21 21:19:46 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-adv-video-supp, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-adv-video-supp-6.2.3
Built on Thu Dec 21 21:19:46 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-video-px, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-video-px-6.2.3
Built on Thu Dec 21 21:19:48 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
asr9k-services-infra, V 6.2.3[Default], Cisco Systems, at disk0:asr9k-services-infra-6.2.3
Built on Thu Dec 21 22:24:15 PST 2017
By iox-lnx-051 in /auto/srcarchive11/production/6.2.3/asr9k-px/workspace for pie
The statement you are searching for in the ‘ssh_autodetect’ source looks good:
RP/0/RSP0/CPU0:<hostname omitted>#sh ver | i Cisco IOS XR
Tue Apr 21 12:33:56.068 PDT
Cisco IOS XR Software, Version 6.2.3[Default]
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
netmiko.ssh_autodetect API documentation - GitHub Pages
Returns. best_match : str or None: The device type that is currently the best to use to interact with the device. Expand source...
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
Sorry, i had no idea the issue was fixed already. I am probably running an old version.
Now, for what concerns the 2.5 seconds, I’ve discovered that in some cases not even 5 seconds is enough and you need more. Ticket opened: #2079
@lamehost You should probably create another issue on that…5 seconds is probably too big (as it will make things pretty slow). Would 2.5 seconds work for your devices?
Kirk