Manage Scheduled Job
manage_scheduled_jobManage RouterOS scheduled jobs by adding, updating, removing, enabling, or disabling entries. Operates idempotently by name and supports dry-run for preview.
Instructions
Add, update, remove, enable, or disable a RouterOS scheduler entry. Idempotent by name. add throws CONFLICT if name exists; update throws NOT_FOUND if it does not. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier from the router registry | |
| action | Yes | Action to perform | |
| name | Yes | Job name — idempotency key | |
| onEvent | No | Script name or inline command to run (required on add) | |
| startDate | No | Start date (e.g. jan/01/2000) | |
| startTime | No | Start time (e.g. 00:00:00) | |
| interval | No | Run interval (e.g. 00:05:00 for every 5 minutes) | |
| comment | No | Optional comment | |
| dryRun | No | Preview changes without applying |