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.

Left-brackets '[' being stripped from NXOS output in Netmiko '2.3.0'

See original GitHub issue

[ characters are being removed from NXOS output and replaced with CR/LF

For example, expected output:

IP Route Table for VRF "test"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

10.0.0.1/32, ubest/mbest: 1/0
    *via 10.0.0.101, Po0.1, [115/6], 3d08h, isis-65535, L2

becomes

IP Route Table for VRF "test"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'
x/y]' denotes 
preference/metric]
'%<string>' in via output denotes VRF <string>

10.0.0.1/32, ubest/mbest: 1/0
    *via 10.0.0.101, Po0.1, 
115/6], 3d08h, isis-65535, L2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jesse-mcgrawcommented, Jun 5, 2019

This does appear to be fixed in 2.3.3

1reaction
jesse-mcgrawcommented, May 25, 2019

Give me a few days and I will check

Read more comments on GitHub >

github_iconTop Results From Across the Web

Messy Netmiko Output - python - Stack Overflow
strip () + " " + "success connection") except Exception as e: print (e) f_3.write(nodeip.strip() + "\n") return prompt_cisco_fnk = net_connect.
Read more >
CLI Command Empty Output - Cisco Community
Hello, I'm using show interfaces counters cli command to get traffic on SF300 and SG300 28 port cisco switch interfaces. (using netmiko ......
Read more >
Compare Paramiko, Netmiko and NAPALM network automation
The device connection is one line, and another line sends the command and prints the output. The Netmiko output is shorter as well,...
Read more >
Screen scraping basics for network engineers
There are numerous ways on how to retrieve command output from a device. The following are 2 commonly used libraries that are quite...
Read more >
Netmiko4 read_timeout - Python for Network Engineers
In Netmiko 3.4.0 'send_command()' will search through the device's output looking for the router prompt or pattern for ten seconds.
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