need script which enabling and disabling pppoe interface

hi people! :slight_smile: i need some script, which will enable pppoe interface in 6h am, and disable it at 19h pm. i have mikrotik 2.9.27. thanks!
PS: HAPPY NEW YEAR to everybody :slight_smile:

You will need something like this. You should edit this to fit your interface you need to enable and disable.

/system scheduler
add comment=“” disabled=no interval=1d name=“Enable PPPoE” on-event=“/interface pppoe-client enable pppoe-out1” start-date=jan/01/1970 start-time=06:00:00

add comment=“” disabled=no interval=1d name=“Disable PPPoE” on-event=“/interface pppoe-client disable pppoe-out1” start-date=jan/01/1970 start-time=19:00:00

it doesn’t working :frowning::(:frowning:
i trying this:

:global ddns-interface "pppoe_provider"
/interface pppoe-client enable [find name=$ddns-interface]

but, doesn’t working :frowning:

Try not to use - in your scripts. You can either use " around your variables like so…

:global “ddns-interface” “pppoe_provider”
/interface pppoe-client enable [find name=$“ddns-interface”]