Simple script but I have no idea how to do it.
Basically I would like a script that watches a certain interface and just logs it if it goes down (no link).
Can anybody make me this script?
I take it that netwatch would be used.
/tool netwatch add host=x.x.x.x down-script={ :log info "Link is down"; } up-script={ :log info "Link is UP"; }
This works if the ip address x.x.x.x you are watching is ONLY available trough that interface.Code: Select all/tool netwatch add host=x.x.x.x down-script={ :log info "Link is down"; } up-script={ :log info "Link is UP"; }