bc-clijob list

List details of one or more jobs.

Usage

job list [full] [filter]
job list name commit

where
full include full details of each job.
filter limits output to jobs whose name contains the filter string.
name of job whose details to list in full.
commit id of job as listed by job changes, or relative index.

read on jobs

Examples

List all jobs

BeyondCron % job list

Job Type Mode Description -------------------------- -------- -------- -------------------------- /admin/updaters/calendar.1 Internal Enabled iCalendar calendar updater /examples/server/backup Command Enabled Business day backup /examples/server/reboot Command Enabled Weekly reboot ...

List full details of a job with a schedule.

BeyondCron % job list full backup

----------- -------------------------- Name /examples/server/backup Description Business day backup Mode Enabled Type Command Actions Start & Kill Host example.com User jsmith Calendar /calendars/business-days Timezone Asia/Tokyo Conditions Schedules weekdays at 23:50:00 Command tmutil startbackup --block Properties PATH: /usr/bin

List full details of a job with a schedule and a condition

BeyondCron % job list full reboot

----------- -------------------------------- Name /examples/server/reboot Description Weekly reboot Mode Enabled Type Command Actions Start & Kill Host example.com User root Calendar Timezone Asia/Tokyo Conditions /examples/server/backup state is stopped Schedules sat at 02:00:00 Command reboot Properties PATH: /sbin:/bin

List full details of an earlier version of a job

BeyondCron % job changes /examples/sleepy

Time Commit Action User Host Client ------------------- ------- -- ------- ------ ----------- ------ 12:42:17 today 03739ed 0 Updated admin example.com bc-cli 16:45:36 13/07/2017 b54493b -1 Updated jsmith example.com bc-web 16:45:19 13/07/2017 2150149 -2 Created jsmith example.com bc-web

BeyondCron % job list /examples/sleepy b54493b

----------- ----------------------------------- Name /examples/sleepy Description Sleep for 1 minute every 14 minutes Mode Enabled Type Trigger Actions Start & Kill Delay 1 minute Calendar Timezone Asia/Tokyo Conditions Triggers Schedules every 14 minutes Properties

List details of an earlier version of a job using the relative commit index

Versions of a job can also be referenced using their relative commit index, with 0 being the current version, -1 being the previous version, etc…

BeyondCron % job list /examples/sleepy -2

----------- ----------------------------------- Name /examples/sleepy Description Sleep for 1 minute every 14 minutes Mode Enabled Type Trigger Actions Start & Kill Delay 1 minute Calendar Timezone Asia/Tokyo Conditions Triggers Schedules every 14 minutes Properties

See also