How to get router identity (name) in MikroTik RouterOS scripting

Use

router_identity.rsc
[/system identity get name]

For example, you can use it like this:

router_email_notify.rsc
/tool e-mail send to=me@mydomain.com subject="My identity is $[/system identity get name]"

Check out similar posts by category: MikroTik, Networking