System information

Manual:Scripting
32
get get <id> <param>=<value> get selected items parameter value
print print <param><param>=[<value>] print menu items. Output depends on print parameters specified. Most common
print parameters are described here
export export [file=<value>] export configuration from current menu and its sub-menus (if present). If file
parameter is specified output will be written to file with extension '.rsc', otherwise
output will be printed to console. Exported commands can be imported by import
command
edit edit <id> <param> edit selected items property in built-in text editor
find find <expression> find items by given expression.
import
Import command is available from root menu and is used to import configuration from files created by export
command or written manually by hand.
print parameters
Several parameters are available for print command:
Parameter Description Example
append
as-value print output as array of parameters and its values :put [/ip address print
as-value]
brief print brief description
detail print detailed description, output is not as readable as brief output, but may
be useful to view all parameters
count-only print only count of menu items
file print output to file
follow print all current entries and track new entries until ctrl-c is pressed, very
useful when viewing log entries
/log print follow
follow-only print and track only new entries until ctrl-c is pressed, very useful when
viewing log entries
/log print follow-only
from print parameters only from specified item /user print from=admin
interval continuously print output in selected time interval, useful to track down
changes where follow is not acceptable
/interface print interval=2
terse show details in compact and machine friendly format
value-list show values one per line (good for parsing purposes)
without-paging If output do not fit in console screen then do not stop, print all information
in one piece
where expressions followed by where parameter can be used to filter out matched
entries
/ip route print where
interface="ether1"
More than one parameter can be specified at a time, for example, /ip route print count-only
interval=1 where interface="ether1"