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

RouterOS 6.49.6 issue #2860

Open
JavierJV opened this issue Jul 18, 2022 · 5 comments
Open

RouterOS 6.49.6 issue #2860

JavierJV opened this issue Jul 18, 2022 · 5 comments

Comments

@JavierJV
Copy link

I am having problems with the version of RouterOS 6.49.6 and netmiko 4.1.1 that does not execute the commands correctly. In the version of RouterOS 6.48.6 everything works correctly. The tests were in a RB2011UiAS-2HnD with a clean configuration.

Code:
`from netmiko import ConnectHandler

import logging

logging.basicConfig(filename="test.log", level=logging.DEBUG)
logger = logging.getLogger("netmiko")

net_connect = ConnectHandler(
device_type="mikrotik_routeros",
host="10.114.130.221",
port="22", # port
username="admin",
password="123456",
session_log="output.txt", # debug
)

command = "interface wireless print terse"

output = net_connect.send_command(command).splitlines()
print(output)

net_connect.disconnect()`

attached log of both versions
log-netmiko-RouterOS-6-49-6.log
log-netmiko-RouterOS-6-48-6.log

@ktbyers
Copy link
Owner

ktbyers commented Jul 18, 2022

@JavierJV Can you post the full exception stack trace?

@JavierJV
Copy link
Author

Add the try/catch but it doesn't throw any exception, the execution is correct. Detect that there are times when it works, but in the debug log it does not add info. Is there a lower level log? I add log when it works.

log-netmiko-RouterOS-6-49-6-WORK.log

@JavierJV
Copy link
Author

sorry, missclick, I accidentally closed

@JavierJV JavierJV reopened this Jul 18, 2022
@ktbyers
Copy link
Owner

ktbyers commented Jul 19, 2022

I probably need to get access to Mikrotik device...they are too challenging to figure out (in general) without having a device to test against.

@ktbyers
Copy link
Owner

ktbyers commented Aug 2, 2022

This could be a similar issue:

#2880

We are supposed to have a device to test against later in the week.

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

2 participants