Thanks for the reply.
My lack of scripting experience is now my problem-
I started with a simple script to check a single interface and create a log entry if true, but it doesn’t work.
/int eth monitor ether2 once do={
:if ($“rate” = “10Mbps”)
:log info “Ether2 is 10Mbps”
}
It doesn’t execute from the Winbox screen, but from the Terminal, it brings up 'do: ’ prompt, and execute correctly if I press enter.
/interface ethernet monitor ether2 once do={
:if ($"status" != "link-ok") do={ :log info "ether2 is WITHOUT LINK"};
:if ($"auto-negotiation" != "done") do={ :log info "ether2 auto-negotiation NOT WORKING"};
:if ($"rate" != "100Mbps") do={ :log info "ether2 is NOT 100Mbps"};
:if ($"full-duplex" = "no") do={ :log info "ether2 is NOT Full-Duplex"};
}