System information
Manual:Scripting
36
policy (string; Default: ) list of applicable policies:
• api - api permissions
• ftp - can log on remotely via ftp and send and retrieve files from the router
• local - can log on locally via console
• password - change passwords
• policy - manage user policies, add and remove user
• read - can retrieve the configuration
• reboot - can reboot the router
• sensitive - see passwords and other sensitive information
• sniff - can run sniffer, torch etc
• ssh - can log on remotely via secure shell
• telnet - can log on remotely via telnet
• test - can run ping, traceroute, bandwidth test
• web - can log on remotely via http
• winbox - winbox permissions
• write - can retrieve and change the configuration
Read more detailed policy descriptions here
source (string;) Script source code
Read only status properties:
Property Description
last-started (date) Date and time when the script was last invoked.
owner (string) User who created the script
run-count (integer) Counter that counts how many times script has been executed
Menu specific commands
Command Description
run (run [id|name]) Execute specified script by ID or name
Environment
Sub-menu level:
•• /system script environment
•• /environment
Contains all user defined variables and their assigned values.
[admin@MikroTik] > :global example;
[admin@MikroTik] > :set example 123
[admin@MikroTik] > /environment print
"example"=123
Read only status properties: