-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error seen when connecting to switch as not able to detect a prompt #3532
Comments
Can you post the full exception stack trace (i.e. all the line numbers where the error occurred)? This let's me see where the error is occuring. |
Traceback (most recent call last):
File "D:......\myvenv\Lib\site-packages\netmiko\base_connection.py", line 111, in wrapper_decorator
File "D:....\myvenv\Lib\site-packages\netmiko\utilities.py", line 596, in wrapper_decorator |
After removing the line netmiko_dev.send_command('\n\n') from code, we get this below error : An Error Occured: Pattern not detected: 'terminal width 511' in output. Things you might try to fix this:
You can also look at the Netmiko session_log or debug log for more information. An Error Occured: 'NoneType' object has no attribute 'write_channel' In Netmiko log only this is present: |
Hi, |
Description of Issue/Question
Setup
device_dict_cisco_serial = {
"device_type" : "terminal_server",
"ip":device_dict_cisco["serial_ip"],
"port":device_dict_cisco["serial_port"],
"username":device_dict_cisco["serial_username"],
"password":device_dict_cisco["serial_password"],
"global_delay_factor": 2,
"session_log":device_dict_cisco["session_log"],
"secret":device_dict_cisco["secret"],
"fast_cli":False
}
netmiko_dev = ConnectHandler(**device_dict_cisco_serial)
netmiko_dev.send_command('\n\n')
netmiko.redispatch(netmiko_dev, device_type=device_dict_cisco["device_type"])
return netmiko_dev
Netmiko version
(Paste verbatim output from
pip freeze | grep netmiko
between quotes below)Netmiko device_type (if relevant to the issue)
(Paste
device_type
between quotes below)Steps to Reproduce the Issue
1)Connect to serial console
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Relevant Python code
(Please try to essentialize your Python code to the minimum code needed to reproduce the issue)
(Paste the code between the quotes below)
The text was updated successfully, but these errors were encountered: