Community discussions

MikroTik App
 
itsh.net
Member Candidate
Member Candidate
Topic Author
Posts: 115
Joined: Mon Jan 23, 2006 12:00 pm
Location: Germany
Contact:

Problem with Script under V3 2.9.xx was o.k.

Fri Feb 29, 2008 11:42 am

i have a problem with a PPPOE Disable Script under V3
before update from V2.9.50 to V3.x was O.K.
:log info "Script Automatische PPPoE-Trennung - scheduled T-DSL-disconnect." 
/interface pppoe-client disable [find name="pppoe-out1"] 
:delay 10 
/interface pppoe-client enable [find name="pppoe-out1"] 

The Script running every Morning at 5.00 with Scheduler
/system scheduler 
add comment="Trennung 05.00 Uhr -T-DSL" disabled=no interval=1d \
    name="sched_disconnect" on-event=pppoe_dis start-date=jan/01/2006 \
    start-time=05:00:00
sice update to V3 running the Script 2 times in the morning one times 4:49.49 and one times 5.00.00

her the log
04:59:49 script,info Script Automatische PPPoE-Trennung - scheduled T-DSL-disconnect. 
04:59:49 system,info device changed by admin 
04:59:49 pppoe,ppp,info pppoe-out1: terminating... - administrator request 
04:59:50 pppoe,ppp,info pppoe-out1: disabled 
04:59:59 pppoe,ppp,info pppoe-out1: initializing... 
04:59:59 pppoe,ppp,info pppoe-out1: dialing... 
04:59:59 system,info device changed by admin 
05:00:00 script,info Script Automatische PPPoE-Trennung - scheduled T-DSL-disconnect. 
05:00:00 system,info device changed by admin 
05:00:00 pppoe,ppp,info pppoe-out1: terminating... - administrator request 
05:00:01 pppoe,ppp,info pppoe-out1: disabled 
05:00:10 pppoe,ppp,info pppoe-out1: initializing... 
05:00:10 pppoe,ppp,info pppoe-out1: dialing... 
05:00:10 system,info device changed by admin 
05:00:14 pppoe,ppp,info pppoe-out1: authenticated 
05:00:14 system,info dns changed 
05:00:14 pppoe,ppp,info pppoe-out1: connected 
can everybody help?
 
User avatar
jordantrx
Long time Member
Long time Member
Posts: 505
Joined: Tue Oct 23, 2007 8:58 pm
Location: WAY upstate NY

Re: Problem with Script under V3 2.9.xx was o.k.

Fri Feb 29, 2008 4:47 pm

i have a problem with a PPPOE Disable Script under V3
before update from V2.9.50 to V3.x was O.K.
:log info "Script Automatische PPPoE-Trennung - scheduled T-DSL-disconnect." 
/interface pppoe-client disable [find name="pppoe-out1"] 
:delay 10 
/interface pppoe-client enable [find name="pppoe-out1"] 

The Script running every Morning at 5.00 with Scheduler
/system scheduler 
add comment="Trennung 05.00 Uhr -T-DSL" disabled=no interval=1d \
    name="sched_disconnect" on-event=pppoe_dis start-date=jan/01/2006 \
    start-time=05:00:00
sice update to V3 running the Script 2 times in the morning one times 4:49.49 and one times 5.00.00

her the log
04:59:49 script,info Script Automatische PPPoE-Trennung - scheduled T-DSL-disconnect. 
04:59:49 system,info device changed by admin 
04:59:49 pppoe,ppp,info pppoe-out1: terminating... - administrator request 
04:59:50 pppoe,ppp,info pppoe-out1: disabled 
04:59:59 pppoe,ppp,info pppoe-out1: initializing... 
04:59:59 pppoe,ppp,info pppoe-out1: dialing... 
04:59:59 system,info device changed by admin 
05:00:00 script,info Script Automatische PPPoE-Trennung - scheduled T-DSL-disconnect. 
05:00:00 system,info device changed by admin 
05:00:00 pppoe,ppp,info pppoe-out1: terminating... - administrator request 
05:00:01 pppoe,ppp,info pppoe-out1: disabled 
05:00:10 pppoe,ppp,info pppoe-out1: initializing... 
05:00:10 pppoe,ppp,info pppoe-out1: dialing... 
05:00:10 system,info device changed by admin 
05:00:14 pppoe,ppp,info pppoe-out1: authenticated 
05:00:14 system,info dns changed 
05:00:14 pppoe,ppp,info pppoe-out1: connected 
can everybody help?
Script syntax has changed a wee bit crom 2.50 to 3.0, if i had my v3.0 scripts here with me i could help you a little, but i dont, mrz willl most likely help you though.. or do a search, this has been talked about before, maybe you can find and see the changeds needed to be made to have it work with 3.0. good luck -Jordan