Someone please help.. needing to make a script to enable/disable my VRRP group (only have one) when an IP address cannot be pinged.
eg: on-down /ip vrrp disable 0
eg: on-up /ip vrrp enable 0
something like that?
Someone please help.. needing to make a script to enable/disable my VRRP group (only have one) when an IP address cannot be pinged.
eg: on-down /ip vrrp disable 0
eg: on-up /ip vrrp enable 0
something like that?
Hi,
You could try the following :
Add a netwatch for the host that needs to be pinged, then add the enable/disable command for vrrp in ‘up-script’ and ‘down-script’. NOTE : use the interface name and not he number as when you used the print command in the terminal. You could also use:
/ip vrrp enable [find name='x'];
where x is the name of the interface name.
ie.
/tool netwatch add host=x.x.x.x timeout=1s interval=1m up-script="/ip vrrp disable vr1" down-script="/ip vrrp disable vr1";