如何在 MikroTik RouterOS 脚本中获取当前时间
为了在 RouterOS 中获取当前时间,使用
routeros_get_time.txt
/system clock get time返回的时间将为 hh:mm:dd 格式和本地时间
例如,以下命令将打印当前时间:
routeros_put_time.txt
:put [/system clock get time]Check out similar posts by category:
MikroTik, Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow