Nornir/Netmiko - "Timed-out reading channel, data not available" after update to Netmiko 3.0
See original GitHub issueSimilar 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:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top 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 >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
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.
suggested fix working