Good day…
Dear Buddy..
below is the script i got from mikrotik to check the port flapping.
Need you sharing that, where should i put the script? and how the script will run?
:global lastRate;
/interface ethernet monitor ether1 once do={
:if ($status = “link-ok”) do={
:if ($lastRate != $rate) do={
:set lastRate $rate
:put “send email here”
} else={
:put “status not changed”
}
}
}
do i need to put it into the scheduler to make it run every 10 minutes? or where should i put this script and how it can auto run.
i was ask google how the mikrotik script work, but since google brother is busy and given no answer to me… 
appreciated it..
Hello Vincent,
It is best to run this script with scheduler http://wiki.mikrotik.com/wiki/Manual:System/Scheduler
Hi Kirshteins..
I try to make this..
:global lastRate;
/interface ethernet monitor ether1 once do={
:if ($status = “link-ok”) do={
:if ($lastRate != $rate) do={
:set lastRate $rate
:put “/tool e-mail send server=202.133.97.7 port=25 to=bt.ang@mykris.net from=iGate_alert@mykris.net subject=”$[/system identity get name] $[/system clock get time] $[/system clock get date]" body=“The Ethernet Port mode is changed, Please check syslog for future investigation and take neccessary action”
} else={
:put “status not changed”
}
}
}
But it’s not working, it shown me…some error on the Subject.
When i test with /tool e-mail send server=202.133.97.7 port=25 to=bt.ang@mykris.net from=iGate_alert@mykris.net subject=“$[/system identity get name] $[/system clock get time] $[/system clock get date]” body=“The Ethernet Port mode is changed, Please check syslog for future investigation and take neccessary action” it’s working and i can receive the send mail message.
where could be wrong?
appreciated for the infor.