Configuring the scheduler

The following tutorial shows you how to create a new CRON job and which parameters are available to you.

  1. In LANconfig, open the configuration for your device.
  2. Open the Cron table in the dialog Date & Time > General and click Add... to create a new CRON job.




  3. Enter a time base.
    The time base determines whether LCOS performs the timing of future actions based on the real time or the uptime of the device. With the setting Real time, the system evaluates time and dates. With the setting Operating time, the system evaluates only the minutes and hours since the device was last started.
  4. The value for Variation specifies the maximum delay in minutes for the start of the CRON job after the specified start time.
    The device determines the actual delay time at random. It lies between 0 and the time entered here. With the variation set to zero the CRON job will be executed at the specified time.
    Note: Rules based on real-time can only be executed if the device has a time from a valid source, e.g. via NTP.
  5. Enter the minute(s), hour(s), day(s) of the week, day(s) of the month and the month(s) when your device should execute the specified command.
    If you do not enter a value, your device ignores the corresponding value. For each parameter you can optionally specify a comma-separated list of values or a range of values (in the form of <Min.>-<Max.>).

    The syntax of the field Days of week corresponds to the usual CRON interpretation:

    Sunday Monday Tuesday Wednesday Thursday Friday Saturday
    0 1 2 3 4 5 6
    Note: The day-of-the-week field is also significant for rules relating to the operating time. This is useful for actions that you perform only once when you start the device (i.e., with zero days uptime). In this way you can match the day of the week to the days of operating time, for example.
  6. Under Commands you enter the command or a comma-separated list of commands.
    Any command-line function can be executed.
  7. Specify the Owner of the CRON job.
    An owner is able to select an administrator defined in the device. If an owner is specified, then the CRON job commands will be executed with the rights of the owner.
  8. A brief description of the CRON job can be entered in the Comment field.
  9. Click OK to save the entry. You then write the configuration back to the device.

Other configuration examples:

Time base At least Hr. W. days M. days Months Command
Real time 0 4 0-6 1-31 1-12 do /so/man/disconnect internet
Real time 59 3 0-6 1-31 1-12 mailto:admin@example.com?sub­ject=Forced-disconnect?body=Manual Internet discconnect
Real time 0 0   1   do /setup/accounting/delete
Real time 0 18 1,2,3,4,5     do /so/man/connect MAINOFFICE
Important: The device executes scheduled rules with an accuracy of one minute. Please ensure that the language you use to enter commands matches with that set for the console, otherwise scheduler commands will be ignored.

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo