|
| 1 | + $ ./cluster_cli.exe --help=plain |
| 2 | + NAME |
| 3 | + cluster_cli - A CLI for the cluster API. This tool is not intended to |
| 4 | + be used as an end user tool |
| 5 | + |
| 6 | + SYNOPSIS |
| 7 | + cluster_cli [COMMAND] … |
| 8 | + |
| 9 | + COMMANDS |
| 10 | + Observer.create [OPTION]… dbg uuid name_label dict endpoints bool |
| 11 | + |
| 12 | + Observer.destroy [OPTION]… dbg uuid |
| 13 | + |
| 14 | + Observer.init [OPTION]… dbg |
| 15 | + |
| 16 | + Observer.set_attributes [OPTION]… dbg uuid dict |
| 17 | + |
| 18 | + Observer.set_compress_tracing_files [OPTION]… dbg bool |
| 19 | + |
| 20 | + Observer.set_enabled [OPTION]… dbg uuid bool |
| 21 | + |
| 22 | + Observer.set_endpoints [OPTION]… dbg uuid endpoints |
| 23 | + |
| 24 | + Observer.set_export_interval [OPTION]… dbg float |
| 25 | + |
| 26 | + Observer.set_host_id [OPTION]… dbg string |
| 27 | + |
| 28 | + Observer.set_max_file_size [OPTION]… dbg int |
| 29 | + |
| 30 | + Observer.set_max_spans [OPTION]… dbg int |
| 31 | + |
| 32 | + Observer.set_max_traces [OPTION]… dbg int |
| 33 | + |
| 34 | + Observer.set_trace_log_dir [OPTION]… dbg string |
| 35 | + |
| 36 | + UPDATES.get [OPTION]… dbg timeout |
| 37 | + Get updates from corosync-notifyd, this blocking call will return |
| 38 | + when there is an update from corosync-notifyd or it is timed out |
| 39 | + after timeout_p seconds |
| 40 | + |
| 41 | + create [OPTION]… dbg init_config |
| 42 | + Creates the cluster. The call takes the initial config of the |
| 43 | + initial host to add to the cluster. This will be the address on |
| 44 | + which the rings will be created. |
| 45 | + |
| 46 | + declare-changed-addrs [OPTION]… dbg changed_members |
| 47 | + Declare that one or more hosts in the cluster have changed |
| 48 | + address. Only use this command if unable to rejoin the cluster |
| 49 | + using `enable` because the IPv4 addresses of all nodes this node |
| 50 | + previously saw are now invalid. If any one of these addresses |
| 51 | + remains valid on an enabled node then this action is unnecessary. |
| 52 | + |
| 53 | + declare-dead [OPTION]… dbg dead_members |
| 54 | + Declare that some hosts in the cluster are permanently dead. |
| 55 | + Removes the hosts from the cluster. If the hosts do attempt to |
| 56 | + rejoin the cluster in future, this may lead to fencing of other |
| 57 | + hosts and/or data loss or data corruption. |
| 58 | + |
| 59 | + destroy [OPTION]… dbg |
| 60 | + Destroys a created cluster |
| 61 | + |
| 62 | + diagnostics [OPTION]… dbg |
| 63 | + Returns diagnostic information about the cluster |
| 64 | + |
| 65 | + disable [OPTION]… dbg |
| 66 | + Stop the cluster on this host; leave the rest of the cluster |
| 67 | + enabled. The cluster can be reenabled either by restarting the |
| 68 | + host, or by calling the `enable` API call. |
| 69 | + |
| 70 | + enable [OPTION]… dbg init_config |
| 71 | + Rejoins the cluster following a call to `disable`. The parameter |
| 72 | + passed is the cluster config to use (optional fields set to None |
| 73 | + unless updated) in case it changed while the host was disabled. |
| 74 | + (Note that changing optional fields isn't yet supported, TODO) |
| 75 | + |
| 76 | + join [OPTION]… dbg token new_member tls_config existing_members |
| 77 | + Adds a node to an initialised cluster. Takes the IPv4 address of |
| 78 | + the new member and a list of the addresses of all the existing |
| 79 | + members. |
| 80 | + |
| 81 | + leave [OPTION]… dbg |
| 82 | + Causes this host to permanently leave the cluster, but leaves the |
| 83 | + rest of the cluster enabled. This is not a temporary removal - if |
| 84 | + the admin wants the hosts to rejoin the cluster again, he will |
| 85 | + have to call `join` rather than `enable`. |
| 86 | + |
| 87 | + set-tls-verification [OPTION]… dbg server_pem_path |
| 88 | + trusted_bundle_path cn enabled |
| 89 | + Enable or disable TLS verification for xapi/clusterd |
| 90 | + communication. The trusted_bundle_path is ignored when |
| 91 | + verification is disabled and can be empty |
| 92 | + |
| 93 | + switch-cluster-stack [OPTION]… dbg cluster_stack |
| 94 | + Switch cluster stack version to the target |
| 95 | + |
| 96 | + COMMON OPTIONS |
| 97 | + --help[=FMT] (default=auto) |
| 98 | + Show this help in format FMT. The value FMT must be one of auto, |
| 99 | + pager, groff or plain. With auto, the format is pager or plain |
| 100 | + whenever the TERM env var is dumb or undefined. |
| 101 | + |
| 102 | + --version |
| 103 | + Show version information. |
| 104 | + |
| 105 | + EXIT STATUS |
| 106 | + cluster_cli exits with: |
| 107 | + |
| 108 | + 0 on success. |
| 109 | + |
| 110 | + 123 on indiscriminate errors reported on standard error. |
| 111 | + |
| 112 | + 124 on command line parsing errors. |
| 113 | + |
| 114 | + 125 on unexpected internal errors (bugs). |
| 115 | + |
0 commit comments