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

Query in version 3.9 of the Mikrotik or below does not work #1

Closed
josuetex opened this issue Sep 27, 2011 · 7 comments
Closed

Query in version 3.9 of the Mikrotik or below does not work #1

josuetex opened this issue Sep 27, 2011 · 7 comments

Comments

@josuetex
Copy link

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

@astounding
Copy link
Owner

What mtik gem version are you using? What MikroTik RouterOS version is on the device?

Thanks,
Aaron out.

@josuetex
Copy link
Author

Gem Mtik 4.0

Mikrotik 3.9

Thanks
------Mensagem original------
De: Aaron Gifford
Para: Josué Teixeira
Assunto: Re: [mtik] Query in version 3.9 of the Mikrotik or below does not work (#1)
Enviada: 28 Set, 2011 18:21

What mtik gem version are you using? What MikroTik RouterOS version is on the device?

Thanks,
Aaron out.

Reply to this email directly or view it on GitHub:
#1 (comment)

Enviado do meu BlackBerry® da TIM

@astounding
Copy link
Owner

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?

@astounding
Copy link
Owner

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.

@josuetex
Copy link
Author

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.

@astounding
Copy link
Owner

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?

@astounding
Copy link
Owner

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.

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