crusoe diagnostics vm create
Trigger a diagnostic (bug report) collection for a VM.
Collection runs asynchronously on the VM through the Crusoe Watch Agent. The command returns a diagnostic ID that you pass to crusoe diagnostics vm status to track progress, and to crusoe diagnostics vm download once collection completes.
Usage
crusoe diagnostics vm create <vm-name/id> [flags]
Flags
| Flag | Description |
|---|---|
-f, --format string | Output format. Supported formats: pretty, json (default: "pretty") |
-h, --help | Help for create |
--json | Output in json format. Shorthand for --format json |
--project-id string | Project ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
--project-name string | Project Name. Optional if set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
Examples
Trigger a collection for a VM:
crusoe diagnostics vm create np-9addff51-1
successfully created Diagnostic
Diagnostic ID: 4d96bc56-d3ea-4314-8aee-35373bbd9798
Keep the diagnostic ID — you need it to check status and to download the report.
What's Next
crusoe diagnostics vm status— Check whether collection has completed- Diagnostics — Full workflow and requirements