You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like sometimes, Napalm cannot connect to Huawei S5735-L24P4X-A1:
napalm --user readonly --vendor huawei_vrp --optional_args conn_timeout=20 10.0.0.101 call get_lldp_neighbors_detail
Enter password:
2024-10-22 14:36:43,367 - napalm - ERROR - method - Failed:
Pattern not detected: 'Info:\\ The\\ configuration\\ takes\\ effect\\ on\\ the\\ current\\ user\\ terminal\\ interface\\ only\\.'in output.
Things you might try to fix this:
1. Explicitly set your pattern using the expect_string argument.
2. Increase the read_timeout to a larger value.
You can also look at the Netmiko session_log or debug log for more information.
================= Traceback =================
Traceback (most recent call last):
File "/opt/netbox-4.1.3/venv/bin/napalm", line 8, in<module>sys.exit(main())
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/napalm/base/clitools/cl_napalm.py", line 308, in main
run_tests(args)
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/napalm/base/clitools/cl_napalm.py", line 291, in run_tests
call_getter(device, args.method, **method_kwargs)
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/napalm/base/clitools/cl_napalm.py", line 27, in wrapper
r = func(*args, **kwargs)
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/napalm/base/clitools/cl_napalm.py", line 255, in call_getter
r = func(**kwargs)
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/napalm_huawei_vrp/huawei_vrp.py", line 893, in get_lldp_neighbors_detail
output = self.device.send_command(command)
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
return_val = func(self, *args, **kwargs)
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/netmiko/utilities.py", line 596, in wrapper_decorator
return func(self, *args, **kwargs)
File "/opt/netbox-4.1.3/venv/lib/python3.10/site-packages/netmiko/base_connection.py", line 1826, in send_command
raise ReadTimeout(msg)
netmiko.exceptions.ReadTimeout:
Pattern not detected: 'Info:\\ The\\ configuration\\ takes\\ effect\\ on\\ the\\ current\\ user\\ terminal\\ interface\\ only\\.'in output.
Things you might try to fix this:
1. Explicitly set your pattern using the expect_string argument.
2. Increase the read_timeout to a larger value.
You can also look at the Netmiko session_log or debug log for more information.
However, while I was doing tests for this issue, it started to work!
ssh [email protected]
User Authentication
([email protected]) Password:
Info: The max number of VTY users is 10, and the number
of current VTY users on line is 1.
The current login time is 2024-10-22 14:08:00+01:00.
Info: Lastest accessed IP: 10.0.0.95 Time: 2024-10-22 14:05:06+01:00 Password will expire in: -
Info: Smart-upgrade is currently disabled. Enable Smart-upgrade to get recommended version information.
<SWITCH-NAME>
It still doesn't contains Info:\\ The\\ configuration\\ takes\\ effect\\ on\\ the\\ current\\ user\\ terminal\\ interface\\ only\\., though...
The text was updated successfully, but these errors were encountered:
It looks like sometimes, Napalm cannot connect to
Huawei S5735-L24P4X-A1
:However, while I was doing tests for this issue, it started to work!
So could it be that the prompt is changing?
Currently, it's this:
It still doesn't contains
Info:\\ The\\ configuration\\ takes\\ effect\\ on\\ the\\ current\\ user\\ terminal\\ interface\\ only\\.
, though...The text was updated successfully, but these errors were encountered: