CiscoTool_v1/netmiko_Api/public/filesTest/20230704-AUTO-Session.AU-de...

41 lines
2.0 KiB
Plaintext

check += net_connect.send_config_set([
File "/usr/local/lib/python3.10/dist-packages/netmiko/base_connection.py", line 2202, in send_config_set
output += self.read_until_pattern(pattern=re.escape(cmd.strip()))
File "/usr/local/lib/python3.10/dist-packages/netmiko/base_connection.py", line 672, in read_until_pattern
raise ReadTimeout(msg)
netmiko.exceptions.ReadTimeout:
Pattern not detected: 'no\\ shut' in output.
Things you might try to fix this:
1. Adjust the regex pattern to better identify the terminating string. Note, in
many situations the pattern is automatically based on the network device's prompt.
2. Increase the read_timeout to a larger value.
You can also look at the Netmiko session_log or debug log for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ct/ManagementNetworkDevice/netmiko_Api/./utils/netmiko_test.py", line 174, in <module>
with ConnectHandler(**R1) as net_connect:
File "/usr/local/lib/python3.10/dist-packages/netmiko/ssh_dispatcher.py", line 365, in ConnectHandler
return ConnectionClass(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/netmiko/base_connection.py", line 439, in __init__
self._open()
File "/usr/local/lib/python3.10/dist-packages/netmiko/base_connection.py", line 444, in _open
self.establish_connection()
File "/usr/local/lib/python3.10/dist-packages/netmiko/base_connection.py", line 1029, in establish_connection
self.remote_conn = telnetlib.Telnet(
File "/usr/lib/python3.10/telnetlib.py", line 218, in __init__
self.open(host, port, timeout)
File "/usr/lib/python3.10/telnetlib.py", line 235, in open
self.sock = socket.create_connection((host, port), timeout)
File "/usr/lib/python3.10/socket.py", line 845, in create_connection
raise err
File "/usr/lib/python3.10/socket.py", line 833, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused