Community discussions

MikroTik App
 
ceylan
newbie
Topic Author
Posts: 27
Joined: Sat Feb 10, 2018 3:03 pm
Location: CYPRUS
Contact:

alternative to scheduler

Wed Apr 10, 2019 2:53 pm

for example i am writing any script as follows...
system script add .....
/interface ethernet monitor ether1 once do={
:if ($rate = "10Mbps") do={
/system.........
}}
or
i want to get sms instant by the router when any user is active
script is working when i press "run script" button. but i want the script always check the variables and when rate =10Mbps start do command.i know i can use "system scheduler" bu i want to know if i have another possibility?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10519
Joined: Mon Jun 08, 2015 12:09 pm

Re: alternative to scheduler

Wed Apr 10, 2019 3:34 pm

In this case, no.
In other places there is sometimes the option to run a script when a certain event occurs, e.g. a PPP connection is made, a DHCP lease is issued, etc.
But not for ethernet connection.
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: alternative to scheduler

Wed Apr 10, 2019 3:56 pm

Actually, you could use netmonitor.... I think that's what it's called.

Once you reach a threshold, either in our out, the script is run.

Sent from my cell phone. Sorry for the errors.

 
ceylan
newbie
Topic Author
Posts: 27
Joined: Sat Feb 10, 2018 3:03 pm
Location: CYPRUS
Contact:

Re: alternative to scheduler

Wed Apr 10, 2019 4:33 pm

mmm I understand.. no alternative :(... i still like MİKROTİK :) Thnks for support...
 
pe1chl
Forum Guru
Forum Guru
Posts: 10519
Joined: Mon Jun 08, 2015 12:09 pm

Re: alternative to scheduler

Wed Apr 10, 2019 4:38 pm

Traffic Monitor... but that monitors the actual transmit/receive bitrate, not the negotiated rate of ethernet.
May you can somehow use it.
 
ceylan
newbie
Topic Author
Posts: 27
Joined: Sat Feb 10, 2018 3:03 pm
Location: CYPRUS
Contact:

Re: alternative to scheduler

Wed Apr 10, 2019 5:01 pm

YES İ USE TRAFFIC MONITOR... THNKS

Who is online

Users browsing this forum: forenuser, Guscht, shevari and 23 guests