-
Dear all, Is there any chance to disable the "terminal width 511" and "terminal length 0" which are sent by default when using the send_multiline function? From the netmiko log: INFO:paramiko.transport:Authentication (password) successful! DEBUG:netmiko:Pattern found: (terminal width 511) DEBUG:netmiko:write_channel: b'terminal length 0\n' DEBUG:netmiko:Pattern found: (terminal\ length\ 0) I really don't need these extra commands as I am trying some specific tests on Cisco devices. Please help me to workaround it! Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can use the |
Beta Was this translation helpful? Give feedback.
-
Just use It will make an SSH connection and do nothing else post login. You could also make your own class and inherit from the Netmiko class and overwrite the session_preparation method. If you wanted to retain the other methods, but change the session_preparation behavior. Of course, you can just directly edit the Netmiko source code as well. |
Beta Was this translation helpful? Give feedback.
Just use
device_type="generic"
.It will make an SSH connection and do nothing else post login.
You could also make your own class and inherit from the Netmiko class and overwrite the session_preparation method. If you wanted to retain the other methods, but change the session_preparation behavior. Of course, you can just directly edit the Netmiko source code as well.