shc doctor run
shc doctor run
Section titled “shc doctor run”run all diagnoses
Synopsis
Section titled “Synopsis”Run every registered diagnosis (optionally filtered by --category to a category, or to one diagnosis by name) and emit per-diagnosis results plus an aggregate summary. Diagnoses only by default. --fix applies the benign and mutating prescriptions. A prescription declared destructive is never applied by --fix: authorise it by naming its diagnosis with --fix-destructive shc doctor ls shows every diagnosis’s declared fix class. On a cluster the node it reaches runs each cluster-scoped check once and every node runs its node-scoped checks: a node-scoped check prints one row per node, named in the last column, and a node that does not answer prints one row saying so. A node applies its own fixes. A fix runs as an operation on the daemon and goes on if the command is interrupted. shc doctor follow <id> waits for it again. Each result is graded by its worst finding: info prints [info], warning [warn], error and critical [fail]. The run exits 1 when a diagnosis fails on any node, 3 when the worst is a warning, and 0 otherwise.
shc doctor run [flags]Options
Section titled “Options” -c, --category string run only diagnoses in this category, or only the diagnosis with this name --fix apply the benign and mutating prescriptions (never a destructive one) --fix-destructive strings authorise the named diagnosis's destructive prescription (repeatable; there is no 'all' form) -h, --help help for run -y, --yes skip the destructive-fix confirmation promptOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) -e, --environment string environment name (default: "prod", or "default" on an estate with no licence and no trial; $SHC_ENVIRONMENT and shc ctx -e override it, and the "master" tenant is always "default") --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) -s, --stack string stack name (default: $SHC_STACK) -t, --tenant string tenant name (default: $SHC_TENANT) -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc doctor - diagnose and fix system issues