Code: Select all
:local ifaceMac [/interface get [/interface find name=$locatorIface] mac-address]
:local cpuLoad [/system resource get cpu-load]
:local freeMemory [/system resource get free-memory]
:local usedMemory ([/system resource get total-memory] - $freeMemory)
:local rosVersion [/system package get value-name=version \
[/system package find where name ~ "^routeros"]]
:local model [/system routerboard get value-name=model]
:local serialNumber [/system routerboard get value-name=serial-number]
Best line of code I can find is...
Code: Select all
:local up; interface pppoe-client monitor pppoe-out1 once do={:set up $uptime;};
Is this the best way to declare uptime and if so can someone please assist in getting the format similar to original code (as this doesn't work):
Code: Select all
:local up [/interface pppoe-client monitor pppoe-out1 once do={:set up $uptime;}]