Community discussions

MikroTik App
 
cinders
newbie
Topic Author
Posts: 46
Joined: Fri Oct 28, 2011 3:09 am

Netwatch disable VLAN working intermittently.

Mon Jul 15, 2013 11:30 am

Guys,

This does not make sense to me. It works one time (log file reports device changed), then when I test it again I get an output to the log file, script: no such item

I run a netwatch script to disable the connection to the hotspot router if the internet goes down:

Host 8.8.8.8
Interval 00:00:10
Timeout 1000

up
:log info "WAN1 is UP";
/interface vlan enable vlan1000;

down
:log info "WAN1 is DOWN";
/interface vlan disable vlan1000;

When it fails, if I go to the terminal and type in the command it works fine, every time. This only happens with netwatch.

Any ideas?

Cheers,
Cinders.
You do not have the required permissions to view the files attached to this post.
 
cinders
newbie
Topic Author
Posts: 46
Joined: Fri Oct 28, 2011 3:09 am

Re: Netwatch disable VLAN working intermittently.

Wed Jul 17, 2013 6:22 am

Can anyone shed any light on this issue?
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Netwatch disable VLAN working intermittently.

Wed Jul 17, 2013 5:16 pm

Try running this:
/interface vlan disable [find name=vlan1000]
Should be a bit more reliable at finding the interface.
 
cinders
newbie
Topic Author
Posts: 46
Joined: Fri Oct 28, 2011 3:09 am

Re: Netwatch disable VLAN working intermittently.

Thu Jul 18, 2013 2:11 am

Thanks for the reply Feklar. I'll give it a try a bit later.