netmiko
netmiko copied to clipboard
oneos terminal width fix for ONEOS6
Fixes terminal width setting for older and newer oneaccess oneos versions
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
Closing PR, will create a new one specifically that includes another bug fix for oneos