The connection has a connection mark and I just need to test if it exists or not.
If it exists the script will send an email or log it.
I have this:
Code: Select all
if ([/ip firewall connection get value-name=connection-mark [find connection-mark="KRN"]]="KRN") do={ :log warning "KRN is OK;} else={ :log warning "KRN is gone"; }
I need a way to catch this error or some sort of test so I can tell the script to do something when there is no connection.
Either that or a better way to test the existance of the connection.
Thanks