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
Mikrotik version > 6.48 = 'export' command incomplete #3405
Comments
I would probably try on your send_command() statement to make it. import re
# rest of your code
output = mikrotik_connection.send_command(
f'export',
cmd_verify=False,
expect_string=re.escape("[user@RTR-FW-NNN-NNN-01] >")
) Does that help? |
Hi, It still didn't work. I can't use a fixed expect_string, it must be a regex because the user and hostname will be variable in another complete script, that has a loop (for) to catch the running-config (export) from a list of devices. |
Hi, Additional information:
the amount of lines captured is not fixed, this time only 5 lines were captured before the command
no visible errors generated |
Description of Issue/Question
Note: Please check https://guides.github.com/features/mastering-markdown/
to see how to properly format your request.
Setup
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
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)
Test
I noticed netmiko is breaking the output of 'export' command when the Mikrotik RouterOS version is > 6.48
The following was tested with 6.49.8 version
# mar/19/2024 11:25:34 by RouterOS 6.49.8
With the python code above, only 27 lines (from a total of 275 lines) were captured by netmiko, no errors were generated
When I use PuTTY to run 'export' command in the same device, the output is complete and has 275 lines
line 278 --> prompt:
I asked for help at Mikrotik Forum, but I was ignored:
https://forum.mikrotik.com/viewtopic.php?t=205175
The text was updated successfully, but these errors were encountered: