Good Morning
there is the opportunity to know when a script reboot a routerboard ?
I have create a script with this information
/system reboot
Tanks
Good Morning
there is the opportunity to know when a script reboot a routerboard ?
I have create a script with this information
/system reboot
Tanks
You can check uptime of the router.
1:
/system ntp client set enabled=yes mode=unicast primary-ntp=64.90.182.55 secondary-ntp=128.138.140.44
2:
/system schedule add name=rebooted on-event=rebooted start-time=startup interval=0
3: create a script and call it “rebooted” and paste the below:
delay 10
:global date [/system clock get date]
:global time [/system clock get time]
:global rebooted ("system rebooted on: ". [:pick $time 0 8] . " " . [:pick $date 4 6] . " " . [:pick $date 0 3] . " " . [:pick $date 7 11])
/log print file $rebooted
everytime the system restarts, it will create a file named the time and date of the restart.