Community discussions

MikroTik App
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

enable netwatch

Thu Sep 09, 2010 11:48 pm

i want simple script to enable netwatch if ping down with dilea 2 minute
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: enable netwatch

Fri Sep 10, 2010 8:58 am

Here is an example how to use netwatch
http://wiki.mikrotik.com/wiki/Manual:To ... c_examples
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: enable netwatch

Sat Sep 11, 2010 1:26 am

thx but i need script to enable the netwach rule
it easy script but need print command to enable and i dont know how to use it in script
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: enable netwatch

Sat Sep 11, 2010 2:35 pm

thx i had find it

/tool netwatch print brief
/tool netwatch enable 0
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: enable netwatch

Mon Sep 13, 2010 8:23 am

It's not a good Idea to use console numbers in scripts
This one is correct script
/tool netwatch enable [find host="x.x.x.x"]
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: enable netwatch

Mon Sep 13, 2010 7:22 pm

thx

Who is online

Users browsing this forum: No registered users and 30 guests