GideonLeGrange / mikrotik-java

A Java client implementation for the Mikrotik RouterOS API.
Apache License 2.0
181 stars 101 forks source link

Can't exec cmd1 [cmd2] and cmd param(no name) #20

Closed pkptzx closed 9 years ago

pkptzx commented 9 years ago

Can't exec cmd1 [cmd2] and cmd param(no name) like: /ip/hotspot/active/remove [/ip/hotspot/active/print where mac-address="00:xx:CC:xx:xx:xx"]

and /ip/hotspot/active/remove 0 /ip/hotspot/active/remove F90410AC F90410AC is exec /ip/hotspot/active/print where mac-address="00:xx:CC:xx:xx:xx" command's .id

help~please~

GideonLeGrange commented 9 years ago

Hello

Can you please give me the following information:

  1. The version of the API you are using
  2. The error you receive when trying to execute the command. The exception stack trace will be helpful.

Gideon

pkptzx commented 9 years ago

I want use api execute script: /ip hotspot active remove [/ip hotspot active find mac-address="00:xx:CC:xx:76:xx"]

but , i don't konw how to change script to api~

RouterOS VERSION:6.2.7 LEVEL 6L

[sorry,my English is very poor ^_^]

GideonLeGrange commented 9 years ago

Can you show me an example of your code? It is not clear to me if you are actually trying to use my Java API. If you are trying to use the API, can you please show me a stack trace of the error?

GideonLeGrange commented 9 years ago

Not enough information to assist further.