routeros - scheduler

最後更新: 2017-02-14

介紹

 


# CLI

/system scheduler

interval (time; default: 0s)
name - name of the task
on-event (name) - name of the script to execute. It must be presented at /system script
startup - execute the script 3 seconds after the system startup.

# print

/system scheduler print

Flags: X - disabled
 #   NAME   START-DATE  START-TIME   INTERVAL             ON-EVENT    RUN-COUNT
 0   Mon... feb/22/2016 17:28:02     1m                   ipsec-m...      14585

# Add

/system scheduler

add disabled=no interval=5m name="Monitor WAN connectivity Scheduler" on-event=monitor

# disable / enable

/system scheduler> disable 0

/system scheduler> print

Flags: X - disabled
 #   NAME   START-DATE  START-TIME   INTERVAL             ON-EVENT    RUN-COUNT
 0 X Mon... feb/22/2016 17:28:02     1m                   ipsec-m...      14585

 

 

Creative Commons license icon Creative Commons license icon