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 type | Description | Licence |
|---|---|---|
| Asset status check (资产状态检测) | Checks whether assets are online and updates the online status in the asset list | All editions |
| Script (脚本) | Runs a shell script on the target assets | Professional, 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
- Select New job (新建任务).
- Pick the Job type and enter a Name.
- 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 1halso work. - For a script job, enter the script to run.
- Pick the Target assets: All assets, or Selected assets and then the assets.
- 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.
Log audit
What the login, file, command and operation logs record, and how to filter, delete and export them. The operation log can be viewed and exported but not deleted.
Disk spaces
Personal and shared file spaces on the bastion, used as mapped drives in RDP sessions, with file management in the browser.