how do i add to the body of an email add text to the email
i what to sy zwooo1 is down
/tool e-mail send to=“x@vx.co.za” subject=([/system identity get name] . " Backup") from=server@network.com server=xxx.xxx.xxx.xxx
:log info “Finished Backup Script!” }
/tool e-mail send body=“here is what you want”
so this is right!
:log info “Ping ZW0001 beginning now”
:local i 0; {:do {:set i ($i + 1); :put $i; :delay 2} while (($i < 5) &&
([/ping 11.0.0.1 count=1 interval=5]=0))}; :if ($i=5) do={ :log info “ZW0001
Down!..”
/tool e-mail send to=“xx@volxx.co.za” subject=([/system identity get
name] . " Backup")
from=server@network.com server=xxx.xxx.xxx.xxx
body=" router down at $[/system clock get time]
$[/systen clock get date]";
:log info “Finished Script!” }
has anyone got any idea on how to fix this script as i cant get this to run on v3.25
what’s not working?
:put "Ping ZW0001 beginning now"
:local i 0;
{
:do {
:set i ($i + 1);
:put $i;
:delay 2
} while (($i < 5) && ([/ping 11.0.0.1 count=1 interval=5]=0))
};
:if ($i=5) do={
:put "ZW0001 Down!..."
/tool e-mail send to="xx@volxx.co.za" subject=([/system identity get name] . " Backup") \
from=server@network.com server=xxx.xxx.xxx.xxx \
body="router down at $[/system clock get time] $[/systen clock get date]";
:log info "Finished Script!"
}
works fine for me…