Community discussions

MikroTik App
 
Guscht
Member Candidate
Member Candidate
Topic Author
Posts: 236
Joined: Thu Jul 01, 2010 5:32 pm

edit netwatch up-script

Thu May 26, 2022 12:20 pm

Hi,

I need to change (clear) the up-script of a Netwach-Action by scheduler.

I tried this:
/tool netwatch edit [/tool netwatch find comment~"DNS1"] up-script=""

But this does not work:
expected end of command (line 1 column 70)
Any suggestions?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: edit netwatch up-script

Thu May 26, 2022 12:27 pm

"edit" is an interactive tool. use "set", "unset" commands to change parameter values in non-interactive manner.
 
Guscht
Member Candidate
Member Candidate
Topic Author
Posts: 236
Joined: Thu Jul 01, 2010 5:32 pm

Re: edit netwatch up-script

Thu May 26, 2022 1:36 pm

Thanks!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: edit netwatch up-script

Thu May 26, 2022 10:54 pm

/tool netwatch set [find where comment~"DNS1"] up-script=""

Who is online

Users browsing this forum: seriosha, sted and 12 guests