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.

Nornir/Netmiko - "Timed-out reading channel, data not available" after update to Netmiko 3.0

See original GitHub issue

Similar vein to issue 1656, I am seeing time out issues running netmiko ssh polls to arista devices that do not support the setting of terminal width in a non enabled context. This used to work in the previous version of netmiko as it did not enforce the searching and successful return of running the term width command.

the previous iteration had the below:

delay_factor = self.select_delay_factor(delay_factor)
command = self.normalize_cmd(command)
self.write_channel(command)
**output = self.read_until_prompt()** 

but the new version tries looking for it regardless of cmd_verify being explicity let to false:

# Avoid cmd_verify here as terminal width must be set before doing cmd_verify
if cmd_verify and self.global_cmd_verify is not False:
    output = self.read_until_pattern(pattern=re.escape(command.strip()))
elif pattern:
    output = self.read_until_pattern(pattern=pattern) <---
else:
    output = self.read_until_prompt()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonhaominglocommented, Nov 23, 2020

Hi Kirk - thanks for the tip - just reporting back that that seems to work. Haven’t had much time to mull over the code by will do soon. Might have more questions to add to this thread.

0reactions
jasonhaominglocommented, Apr 27, 2021

suggested fix working

Read more comments on GitHub >

github_iconTop Results From Across the Web

Netmiko "Timed-out reading channel, data not available." for ...
I have faced with the similar error. When I have checked the configuration of the device through CLI, I have seen that the...
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. This assumes ...
Read more >
Netmiko is not finding the prompt when entering banner exec ...
Netmiko hasn't been stable for me today so I opted to upgrade to version 3.0.0. ... "Timed-out reading channel, data not available.
Read more >
Issue with a NetMiko script : r/networking - Reddit
Essentially, The script will run, and either fail right after ... NetMikoTimeoutException: Timed-out reading channel, data not available.
Read more >
Netmiko timing out after sending command - Python Forum
NetmikoTimeoutException: Timed-out reading channel, data not available. Sorry, I solved my own problem.. I used this bit of code from here: Netmiko Github...
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