Mikrotek RouterOSスクリプトは、ipをメールボックスにタイミングよく送信します.
#
:local PPPInterface " "
#
:local whoami "Hi,"
#SMTP
:local SMTPServer " "
#SMTP
:local SMTPPort " "
#
:local SendEmailTo " "
#
:local Sender " "
#
:local pwd " "
# Email
:local Themes "ROS Email Assistant"
#
:local Contents "IP Address: "
# SMTP IP
:local SMTPIP [:resolve $SMTPServer]
:delay 3
#Email
/tool e-mail set address=$SMTPIP port=$SMTPPort from=$Sender user=$Sender password=$pwd
# IP
:local getip [ /ip address get [/ip address find interface=$PPPInterface ] address ]
:global IPAddress [:pick $getip 0 [:find $getip "/" ] ]
# system
:global ROSVersion ("RouterOS Version: v" . [/system package get system version] )
# Email
/tool e-mail send to=$SendEmailTo from=$Sender subject=$Themes body=("$whoami
$Contents$IPAddress
$ROSVersion")
#
:log warning " , ($SendEmailTo)"
:log warning (" IP =" ."$IPAddress")
それから自分でschedulerでタイミングタスクを作成すればいいので、on eventにscriptの名前を記入すればいいです.