netmiko icon indicating copy to clipboard operation
netmiko copied to clipboard

oneos terminal width fix for ONEOS6

Open mwallraf opened this issue 2 years ago • 1 comments

Fixes terminal width setting for older and newer oneaccess oneos versions

mwallraf avatar Sep 17 '22 09:09 mwallraf

SSH Autodetect output:

DEBUG:netmiko:read_channel: DEBUG:netmiko:read_channel: botlab01-02eve-01# DEBUG:netmiko:read_channel: DEBUG:netmiko:read_channel: DEBUG:netmiko:write_channel: b'show version\n' DEBUG:netmiko:read_channel: show version Software version : OneOS-pCPE-ARM_pi1-6.2.1 Software created on : 2019-04-12 17:13:15 botlab01-02eve-01# DEBUG:netmiko:read_channel: DEBUG:netmiko:read_channel: {'oneaccess_oneos': 99}

SNMP autodetect:

from netmiko.snmp_autodetect import SNMPDetect my_snmp = SNMPDetect( ... hostname="192.168.100.1", ... snmp_version="v2c", ... community="public", ... ) device_type = my_snmp.autodetect() print(device_type) oneaccess_oneos

mwallraf avatar Oct 01 '22 15:10 mwallraf

Closing PR, will create a new one specifically that includes another bug fix for oneos

mwallraf avatar Jan 11 '23 10:01 mwallraf