Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15434

Scripting • Re: RouterOS get uptime days

$
0
0
My function timetoseconds is correct...
viewtopic.php?p=930465#p930465

but if already is v7.12.1 (and up) just simply...
Code:
:put "Uptime: $([:tonum [/system resource get uptime]] / 86400) days"

That's great.
Effective and simple code.
Thank you.

Statistics: Posted by ko00000000001 — Tue Mar 19, 2024 12:58 pm



Viewing all articles
Browse latest Browse all 15434

Trending Articles