Qnbot CLISaving diagnostics

Saving diagnostics

Save command results and stderr diagnostics separately for reproducible troubleshooting.

Latest documentation

Saving diagnostics

Save queries and diagnostics

Redirect standard output and standard error to separate files:

qnbot --version > qnbot-version.txt
qnbot device list --json > devices.json 2> discovery.log
qnbot device info --sn SN --json > device-info.json 2> device-info.log
qnbot device get health --sn SN --json > health.json 2> health.log

JSON files store command results. Each .log stores diagnostics written to stderr by that command. Per-port discovery issues also appear in data.issues in devices.json.

Save subscription diagnostics

qnbot device sub pose --sn SN --duration-s 30 --jsonl > pose.jsonl 2> pose.log

pose.jsonl stores received samples. pose.log stores runtime warnings, errors and cleanup diagnostics. Retain the exit status immediately after the command: use echo $? in a macOS/Linux shell or $LASTEXITCODE in PowerShell.

For troubleshooting, provide the CLI version, exact command, exit status, device model and firmware, and the corresponding result and log files.