Hi ,
if i want to execute a script when the pppoe fail, how??
please help me an example , my scenario:
lan , pppoe1,pppoe2 , load balance and limit with pcq
and i want
if pppoe1($status)<>connected system script run pppoe_failed ![]()
tanks!!!
Hi ,
if i want to execute a script when the pppoe fail, how??
please help me an example , my scenario:
lan , pppoe1,pppoe2 , load balance and limit with pcq
and i want
if pppoe1($status)<>connected system script run pppoe_failed ![]()
tanks!!!
/interface pppoe-client monitor pppoe1 once do={
:if($status != “connected”) do={
}
}
P.S.
Sorry for my bad english language..
Ok, thanks for all
but..
i run the code into a “on event” scheduler and not work..
i run in a script list and not work
other…
in a new terminal window,report an error in the line
:if($status!="connected")
and i correct with
:if ($status!="connected")
but not work ![]()
what am I being wrong?
the complete code is :
/interface pppoe-client monitor pppoe1 once do={
:if ($status != "connected") do={
/system script run pppoe_fail
}
}
pppoe1 is a pppoe-client interface and run correctly
the script (pppoe_fail) is an example and execute 3 beep simply…
Thanks.