cw-remedyctl#

NAME

cw-remedyctl -- Query and modify auto remediation service remedies for the cluster.

USAGE

cw-remedyctl

[-h] [-v] [-q] [[-c | --config] CONFIG] [--base-url URL] [[-u | --user] USER[:PASSWD]] [--human | --json | --csv | --table] [--pretty | --no-pretty] [--show-uids] [[-i | --ids] REMEDY | -a | --all] [--reset-all] {list,ls, create,mk, clone,cp, update,up, delete,rm}

OPTIONAL ARGUMENTS

-h, --help

Print usage message and exit. Ignore trailing args, parse and ignore preceding args.

-v, --verbose

Increase verbosity.

-q, --quiet

Decrease verbosity.

-c, --config CONFIG

Specify a client configuration file CONFIG.

--show-uids

Do not try to make the output more human readable.

-a, --all

Interact with all remedies (default for list).

-i, --ids REMEDY

A comma-separated list of remedies to query or modify. Values can include name, UID, or truncated UID.

--reset-all

Reset remedies to the default definitions in the health repo.

FORMATTING ARGUMENTS

--human

Format the output for readability (default).

--json

Format the output as JSON.

--csv

Format the output as CSV.

--table

Format the output as a table.

--pretty

Indent JSON or XML output, and substitute human readable output for other formats.

--no-pretty

Opposite of --pretty.

--fields FIELDS

Select individual fields in the result or error.

ACTIONS

clone (cp) [--content JSON | INI_FILE] [NAME=VALUE ...]

Copy remedy to new identifier.

--content JSON | INI_FILE

Overwrite fields in the cloned remedy.

create (mk) [--content JSON | INI_FILE] [NAME=VALUE ...]

Add a remedy.

--content JSON | INI_FILE

Load this content into the database as a remedy. The content may be JSON, an INI file, a YAML document, or a YAML stream containing multiple remedies.

delete (rm)

Delete remedies.

list (ls) [--long | --long-long] [--nodes [NODE ...]] [--show-labels]

Show information about remedies.

-l, --long

Show a subset of all optional information for each remedy.

-L, --long-long

Show all optional information for each remedy.

update (up) [--content JSON | INI_FILE] [NAME=VALUE ...]

Modify remedy fields.

--content JSON | INI_FILE

Overwrite fields in the specified remedies.

EXAMPLES

cw-remedyctl list

List all remedies.

cw-remedyctl -i node_reboot_gpu update impact=0.6

Change the impact of node_reboot_gpu to 0.6.

cw-remedyctl -i node_reboot_gpu --fields checks ls -l

Show the list of health checks associated with node_reboot_gpu.

RETURN VALUES

Upon successful completion, cw-remedyctl returns 0. On failure, an error message is printed to stderr and cw-remedyctl returns 1.