Skip to main content
User guide

Scheduled jobs

Check whether assets are online, or run shell scripts on assets, on a cron schedule. Script jobs are a Professional and Enterprise feature.

Operations > Scheduled jobs (系统运维 > 计划任务) manages jobs that run on a schedule. Each run's result is written to the job's log.

Job typeDescriptionLicence
Asset status check (资产状态检测)Checks whether assets are online and updates the online status in the asset listAll editions
Script (脚本)Runs a shell script on the target assetsProfessional, Enterprise

A new installation creates one asset status check job that checks every asset every 10 minutes.

Without a licence for script jobs, new jobs can only be asset status checks. Existing script jobs are kept but skipped when due, with the reason in the job log; Run now and Edit are unavailable, while Delete still works. Once the licence is restored, enabled script jobs resume from their next trigger.

Create a job

Steps

  1. Select New job (新建任务).
  2. Pick the Job type and enter a Name.
  3. Enter the Expression. It has six fields, second minute hour day month weekday; for example, every day at 02:00 is 0 0 2 * * *. Intervals such as @every 1h also work.
  4. For a script job, enter the script to run.
  5. Pick the Target assets: All assets, or Selected assets and then the assets.
  6. Select Save.

Manage jobs

  • Enabled: turns the job on or off. A disabled job no longer runs on schedule.
  • Run now (立即执行): after confirmation, runs the job once against its target assets; see the job log for the result.
  • Job log (执行日志): the time and result of each run. Select Clear log to empty it. Retention is set in System settings.
  • Edit and Delete.

A script job can run commands on every SSH asset. Check the script and the target assets before saving or running it.

On this page