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.

send_config_set not working with IOS XR due to abbreviated "config term" command on IOS-XR 7.0 code

See original GitHub issue

Hi,

send_config_set is not working when dealing with IOS XR (7.0.1) send_command is working but the send_config_set is timing out.

device_type is set to ‘cisco_xr’

output:

Traceback (most recent call last):
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\channel.py", line 699, in recv
    out = self.in_buffer.read(nbytes, self.timeout)
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\buffered_pipe.py", line 164, in read
    raise PipeTimeout()
paramiko.buffered_pipe.PipeTimeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\netmiko\base_connection.py", line 550, in _read_channel_expect
    new_data = self.remote_conn.recv(MAX_BUFFER)
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\channel.py", line 701, in recv
    raise socket.timeout()
socket.timeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "myUserDirectory\PycharmProjects\untitled\NetmikoIOS.py", line 26, in <module>
    output = net_connect.send_config_set(config_commands)
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\netmiko\cisco\cisco_xr.py", line 19, in send_config_set
    return super().send_config_set(
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\netmiko\base_connection.py", line 1728, in send_config_set
    output += self.config_mode(*cfg_mode_args)
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\netmiko\cisco_base_connection.py", line 40, in config_mode
    return super().config_mode(config_command=config_command, pattern=pattern)
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\netmiko\base_connection.py", line 1621, in config_mode
    output += self.read_until_pattern(pattern=re.escape(config_command.strip()))
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\netmiko\base_connection.py", line 627, in read_until_pattern
    return self._read_channel_expect(*args, **kwargs)
  File "myUserDirectory\AppData\Local\Programs\Python\Python38-32\lib\site-packages\netmiko\base_connection.py", line 560, in _read_channel_expect
    raise NetmikoTimeoutException(
netmiko.ssh_exception.NetmikoTimeoutException: Timed-out reading channel, data not available.

Process finished with exit code 1

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:34 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
fadisaqalcommented, May 20, 2020

Okay, that’d be great 😄 Thanks a lot

1reaction
fadisaqalcommented, May 20, 2020

I’m on 7.0.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terminal Services Commands on Cisco IOS XR Software
This chapter describes the Cisco IOS XR commands used for setting up physical and virtual terminal connections, managing terminals, and configuring virtual ...
Read more >
Cisco IOS-XR - Configuring Protocol IS-IS - YouTube
Cisco IOS - XR - Configuring Protocol IS-ISWarning and DisclaimerEvery effort has been made to make this video as complete and as accurate...
Read more >
How to configure SSH on Cisco IOS XR - LetsConfig
In this lesson, we will configure SSH on Cisco IOS XR enabled routers - NCS, CRS series, 12000 series, and ASR9000 series.
Read more >
10 commands you should master when working with the Cisco ...
Becoming proficient with the Cisco IOS means learning some ... need to rely on when handling various configuration and troubleshooting tasks.
Read more >
Playing with the onbox IOS-XR ZTP Bash and Python Library
Show commands. The xrcmd utility is used for this purpose. Let's dump the running configuration. To use this utility drop into the IOS-XR...
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