Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern not detected on Summit200-24 #1

Open
kusen81 opened this issue Apr 2, 2024 · 0 comments
Open

Pattern not detected on Summit200-24 #1

kusen81 opened this issue Apr 2, 2024 · 0 comments

Comments

@kusen81
Copy link
Owner

kusen81 commented Apr 2, 2024

Creating connection...
Traceback (most recent call last):
File "/.venv/lib/python3.10/site-packages/napalm/base/base.py", line 128, in _netmiko_open
if not self.force_no_enable:
AttributeError: 'ExosDriver' object has no attribute 'force_no_enable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/laan/script/transtema_audit/slask/test.py", line 30, in
device.open()
File "/home/laan/script/transtema_audit/ntwrk/napalm-exos/napalm_exos/exos.py", line 132, in open
self.device = self._netmiko_open(
File "/home/laan/script/transtema_audit/.venv/lib/python3.10/site-packages/napalm/base/base.py", line 131, in _netmiko_open
self._netmiko_device.enable()
File "/home/laan/script/transtema_audit/.venv/lib/python3.10/site-packages/netmiko/cisco_base_connection.py", line 26, in enable
return super().enable(
File "/home/laan/script/transtema_audit/.venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 2024, in enable
if check_state and self.check_enable_mode():
File "/home/laan/script/transtema_audit/.venv/lib/python3.10/site-packages/netmiko/cisco_base_connection.py", line 15, in check_enable_mode
return super().check_enable_mode(check_string=check_string)
File "/home/laan/script/transtema_audit/.venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 1993, in check_enable_mode
output = self.read_until_prompt(read_entire_line=True)
File "/home/laan/script/transtema_audit/.venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 837, in read_until_prompt
return self.read_until_pattern(
File "/home/laan/script/transtema_audit/.venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 746, in read_until_pattern
raise ReadTimeout(msg)
netmiko.exceptions.ReadTimeout:

Pattern not detected: '\\ SWITCH01:1\ .' in output '\n* SWITCH01:3 # '

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant