osmates diagnostics
Save a zip of the logs, reports and versions of OSMates to attach to an issue.
osmates diagnostics [<options>] [<machine>]Gathers the same archive as Help > Collect Diagnostics in the app: the logs of OSMates, the crash, resource, panic and memory reports of its processes, versions, the machines and, for the machine you name while it runs, its guest agent's log. Names of your account, Mac, machines, folders and public addresses are replaced unless you pass --keep-personal-details; secrets always are. It never holds an image, a disk, memory, clipboard or typed text, and stays under 20 MiB. Agent activity from the audit trail goes in only with --audit.
Arguments
<machine>A machine whose console and guest agent's log go in more fully.
--output, -o <output>A file or folder to write into. Default: the current folder.
--last <last>How far back logs go, from 1h to 7d, such as 6h or 2d.
Default:
24h--leave-out <leave-out>RepeatableLeave out a part: logs, reports, panics, machines or guest.
One of
logs,reports,panics,machines,guest.--auditAdd agent activity from the audit trail.
--keep-personal-detailsKeep the names of your account, Mac, machines and folders, and public addresses.
--listShow what each part would hold, and write nothing.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/diagnostics.json
bytesintegerRequiredentriesarray of stringsRequiredfileNamestringRequiredleftOutarray of objectsRequiredleftOut[].whatstringRequiredleftOut[].whystringRequiredosmatesdstringRequired
With --list
With --json and --list, it prints an array of objects with these fields.
JSON Schema: /schemas/0/cli/diagnostics.list.json
detailstringRequiredisAvailablebooleanRequiredpartstringRequiredOne of
logs,reports,panics,machines,guest,audit.reasonstring
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |