Create a SMART test schedule
omv_create_smart_scheduleCreates an inactive SMART self-test schedule for a disk when no matching test exists, enabling omv_start_job to run short, long, conveyance, or offline tests.
Instructions
Create a SMART self-test schedule for a disk, switched off unless asked, so omv_start_job can run a test on it. Use it when the person says "run a long SMART test on sda", "test this disk" or "set up a SMART test for my NAS disk" and omv_start_job kind smart_test says the disk has no scheduled test. Then call omv_start_job with the same disk and test. The disk must be one omv_list_disks shows that SMART can read; a disk without SMART data is refused. A disk may have one schedule per test type: refuses when it already has this type's (omv_start_job runs it). The schedule time is fixed, 03:00 on 1 January, because OMV requires one; with enabled false (the default) it never fires by itself. The comment is data. The change is staged and applied only by omv_apply_changes (omv_get_pending_changes lists what is waiting); if omv_start_job cannot find or start the test before that, apply first. Needs OMV_ALLOW_WRITES=1.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"disk": "<disk>",
"test": "<test>"
},
"name": "omv_create_smart_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disk | Yes | The disk, as omv_list_disks gives it: its device file such as /dev/sda, or sda. | |
| test | Yes | Which self-test: short, long, conveyance, or offline. | |
| comment | No | A comment: one line of printable text, up to 200 characters. | |
| enabled | No | true to switch the schedule on, so OMV also runs it by itself (03:00 on 1 January each year); false (the default) keeps it off, which still lets omv_start_job run the test. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | Yes | ||
| outcome | Yes | ||
| pending | Yes |