Hello,
I’m trying to write a script that will send an email each time our AP is rebooted.
Here is the script:
/system script add name=“boot-mail” source={/tool e-mail send to=“xxx@xxx.com” server=“xx.xx.xx.x” from=“network_monitoring@wavelengthmail.com” subject=“Reboot” body=[/system identity get name]}
here is scheduler:
/system scheduler add name=“reboot_report” on-event=“boot-mail” start-time=startup
It works fine if i manually execute script, or turn on interval variable on scheduler, but it doesnt work on bootup. I suspect it is so because AP tries to send email before it establishes pppoe session with dsl provider.
Is there a way to delay script execution for about 30 seconds?
Thanks