Request an invite
Docs menu

osmates diagnostics

Save a zip of the logs, reports and versions of OSMates to attach to an issue.

Usage
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>Repeatable

Leave out a part: logs, reports, panics, machines or guest.

One of logs, reports, panics, machines, guest.

--audit

Add agent activity from the audit trail.

--keep-personal-details

Keep the names of your account, Mac, machines and folders, and public addresses.

--list

Show what each part would hold, and write nothing.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/diagnostics.json

bytesintegerRequired
entriesarray of stringsRequired
fileNamestringRequired
leftOutarray of objectsRequired
leftOut[].whatstringRequired
leftOut[].whystringRequired
osmatesdstringRequired

With --list

With --json and --list, it prints an array of objects with these fields.

JSON Schema: /schemas/0/cli/diagnostics.list.json

detailstringRequired
isAvailablebooleanRequired
partstringRequired

One of logs, reports, panics, machines, guest, audit.

reasonstring

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page