Download Script:
:local CurDate [/system clock get date]
:local CurTime [/system clock get time]
:local DSpeed "10Mbps"
:local StatusTraffic "Download"
:local OnInterface "Bridge-LAN"
#WriteDown2Log
:log info "$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface"
#SMS
/tool sms send phone-number="077272270" port=usb2 message="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface.
Alert by Phalla.......................................!"
/tool e-mail send to="phalla.ccmt@gmail.com" subject="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate" body="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface.
Alert by Phalla...........................................!"
Upload Script:
:local CurDate [/system clock get date]
:local CurTime [/system clock get time]
:local DSpeed "10Mbps"
:local StatusTraffic "Upload"
:local OnInterface "Bridge-LAN"
#WriteDown2Log
:log info "$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface"
#SMS
/tool sms send phone-number="077272270" port=usb2 message="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface.
Alert by Phalla.......................................!"
/tool e-mail send to="phalla.ccmt@gmail.com" subject="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate" body="$StatusTraffic speed is more then $DSpeed at $CurTime $CurDate on interface $OnInterface.
Alert by Phalla...........................................!"
2 comments
Write commentsHi Guys,
ReplyI have tried this script. It emails me but it only writes
"Speed is more then at" on the subject line. Then its blank.
Could you identify why?
Thanks.
Hi Guys,
ReplyI tried to get this to work, however, I only receive an email with subject "speed is more than at". No body or anything else.
Any help on this would be really great!
Thanks.
EmoticonEmoticon