Datasheet

API command notes
179
!fatal
!fatal can be received only in cases when API is closing connection:
too many commands are sent to router prior login
there is error in authentication that is not recoerable
/quit command is sent to router. Response looks like this:
>>> /quit
<<< !fatal
<<< session terminated on request
CLI commands that are not in API
some commands are not available in API when compared with CLI, these include interactive commands and
scripting commands
Interactive commands
interactive command examples that will not work in API are:
/system telnet
/system ssh
/tool mac-telnet
Scripting commands
Any find command is not supported, use queries and proplist instead
/ip adddress find
Commands that starts with semicolon:
delay error find foreach if local parse
put set toarray toid toip6 tostr typeof
do execute for global len nothing
pick resolve time tobool toip tonum totime while
API sentence examples
Examples of use of commands
Addressing entries
In some places in API it is possible to address entries using value of name attribute as attribute .id value. Some
places where ambiguity could arise this feature is not available.
Examples
setting interface name to one that already exist:
/interface/set
=.id=ether1
=name=ether2