latest stable
    version is 3.4.1rc1
    main     download     documentation     support     forum     development

 

[service scheduler]


To explicitly describe this service is not necessary: it is implied that the configurative file begins from description main, after which go the commands of service scheduler.


schedule [oid OID ] time time_period action requested_action
Is assigned the timetable, according to which will be fulfilled the assigned command.
  • oid OID
    the unique identifier of user, it is created automatically if it is not indicated
  • time time_period
    time or the interval, when the command is executed:
    • <number><time_selector>, for example schedule time 1min action "show version"
      the possible indicators: sec, min, hour, day, week, month. the command indicated will be carried out through the appropriate time interval and it will be after performance planned again.
    • {hourly|daily|weekly|monthly}
      command will be completed in first second of the beginning of each period, independent of the time of its task for example schedule time weekly action save will automatically save config in first second of Monday, i.e., the beginning of week.
    • at-XX:XX
      the command of zaplaniruyestya to the preset time will be carried out daily for example schedule time at-22:00 action save
    • If we afterward <time_period> place sign '+', then the fulfillment of command will be planned for 10 seconds more lately than it is indicated, if sign '-', then it is earlier for 10 seconds.
  • action requested_action
    the planned command - any permitted. If in it several words, you conclude it completely into the quotation marks, while if in command itself quotation marks are necessary, then use apostrophes. If it is desirable to carry out consecutively commands, for example dl tuning any parameters of service, command can be divided by symbols "&& " (before and afterward - gaps), for example then:
    schedule time at-23:30 action "service processor && unit host name pupkin sys-deny && exit"

no schedule oid OID
It abolishes the planned task.

show schedule
The list of the current tasks of planner reflects. See also here.


Рейтинг@Mail.ru