Hi.
I have simple script to check link status on ethernet ports:
:local sysname [/system identity get name];
:foreach i in=[/interface find] do={
:local nazwa {:put [/interface ethernet get $i value-name=name]};
:local koment {:put [/interface ethernet get $i value-name=comment]};
/interface ethernet monitor $i once do={
:if ($nazwa != ether10) do={
:if ($status = "no-link") do={
/tool e-mail send to=xxxx from=xxxxxx subject="$sysname: Link down $nazwa ($koment) " body="Cos sie skopalo.";
:log info message="Brak linku na $nazwa ($koment), wyslalem maila.";
}
}
}
}
Ether10 is empty so I dont want to check it. At ROS 6.1 script worked but at 6.7 condition with ether10 doesnt work, it always send me an email.
Sorry for my english, I hope you will understand me ![]()