-
Notifications
You must be signed in to change notification settings - Fork 23
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
Query in version 3.9 of the Mikrotik or below does not work #1
Comments
What mtik gem version are you using? What MikroTik RouterOS version is on the device? Thanks, |
Gem Mtik 4.0 Mikrotik 3.9 Thanks What mtik gem version are you using? What MikroTik RouterOS version is on the device? Thanks, Reply to this email directly or view it on GitHub: Enviado do meu BlackBerry® da TIM |
So using mtik gem version 4.0 querying a MikroTik device running RouterOS 3.9, doing conn.get_reply("/ip/hotspot/user/getall", "?.id=*3") results in ALL hotspot users in the response, instead of just the one? When using gem version 4.0 and querying a RouterOS device running a 4.x or 5.x version, does the command work correctly? |
I don't have access to a MikroTik RouterOS device running version 3.9. I did a quick test on a hotspot running RouterOS version 3.30 using the 4.0 mtik gem and it worked correctly returning only a single result using a similar API query parameter. |
So using mtik gem version 4.0 querying a MikroTik device running RouterOS 3.9, doing conn.get_reply("/ip/hotspot/user/getall", "?.id=*3") results in ALL hotspot users in the response, instead of just the one? Yes. When using gem version 4.0 and querying a RouterOS device running a 4.x or 5.x version, does the command work correctly? Yes. |
Does using a different API library, either an older mtik gem version OR the PHP API library work correctly when querying the RouterOS 3.9 device? |
I'm going to close this issue, since it's been two weeks and from the information provided, there's a high likelihood that the issue is a RouterOS API implementation issue between different RouterOS versions, and not a bug in this Ruby library. If you have more information that points to this library, please open a new issue and provide that additional information. Thank you. |
Hello,
When trying to make a filter in query with Mikrotik 3.9, using version 4.0 of mtik does not work.
conn = MTik::Connection.new(:host => host, :port => porta, :user => usuario, pass => senha)
conn.get_reply("/ip/hotspot/user/getall", "?.id=*3")
The code above returns all users of the hotspot. In version 4.0 or higher Mikrotik works normally.
Congratulations on the project.
Big Hug.
Josué Teixeira
The text was updated successfully, but these errors were encountered: