so i want to know if there is a way to get this result in a single script ??
i tryed to change the ip using the name instead of the id but it din’t work/
When you’re at a terminal, type the command and then press “?” to see the arguments it can accept.
In terminal, you can omit the names of some arguments, but in API, you are required to specify all of them. If the name of an argument can be omitted in terminal, it will be surrounded with “<” and “>”.
A typical argument for targeting entries is “numbers”. The API version of this argument can accept anything its shell equivalent can except numbers (ironically enough), although it can accept an ID. So - if in terminal you can target an entry with something other than a number, you should be able to do the same from the API.
Is there a way to input a user command during a script ?
example: – [Q quit|D dump|C-z pause]
how do I tell the script to simulate the user pressing the q button to quit the current command?
in CLI you cannot do anything else but run continuous command. However you can open new cli to continue work.
In API you can run multiple commands and use .tag to tag those, so you can run several and manage how long each of the runs. and what reply comes from what continuos command.
Could you please help me with a little code? I need to execute the command to change the name of MikroTik but I am not able to pass the parameters in the API in Swift. It’s different from the PHP API. I’ve tried in many ways..