openshift-cli-adm-diagnostics man page

openshift cli adm diagnostics — Diagnose common cluster problems


openshift cli adm diagnostics [Options]


This utility helps troubleshoot and diagnose known problems. It runs diagnostics using a client and/or the state of a running master / node host.

openshift cli adm diagnostics

If run without flags, it will check for standard config files for client, master, and node, and if found, use them for diagnostics. You may also specify config files explicitly with flags, in which case you will receive an error if they are not found. For example:

openshift cli adm diagnostics --master-config=/etc/origin/master/master-config.yaml
· If master/node config files are not found and the --host flag is not present, host diagnostics are skipped.

· If the client has cluster-admin access, this access enables cluster diagnostics to run which regular users cannot.

· If a client config file is not found, client and cluster diagnostics are skipped.

Diagnostics may be individually run by passing diagnostic name as arguments. The available diagnostic names are: AnalyzeLogs ClusterRegistry ClusterRoleBindings ClusterRoles ClusterRouter ConfigContexts DiagnosticPod MasterConfigCheck MasterNode MetricsApiProxy NodeConfigCheck NodeDefinitions ServiceExternalIPs UnitStatus


Client context to use for cluster administrator
Path to the config file to use for CLI requests.
The name of the kubeconfig context to use
-l, --diaglevel=1
Level of diagnostic output: 4: Error, 3: Warn, 2: Notice, 1: Info, 0: Debug
Look for systemd and journald units even without master/node config
Image template for DiagnosticPod to use in creating a pod
When expanding the image template, use latest version, not release version
Set the level of log output (0-10)
Set per module logging with file|pattern=LEVEL,...
Path to master config file (implies --host)
Path to node config file (implies --host)
May be set to prevent diagnostics making any changes via the API

Options Inherited from Parent Commands

DEPRECATED: The API version to use when talking to the server

Username to impersonate for the operation.

Path to a cert. file for the certificate authority.

Path to a client certificate file for TLS.

Path to a client key file for TLS.

The name of the kubeconfig cluster to use

The Google Cloud Platform Service Account JSON Key to use for authentication.

If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.

Maximum number of seconds between log flushes

Require server version to match client version

-n, --namespace=""
If present, the namespace scope for this CLI request.

The address and port of the Kubernetes API server

Bearer token for authentication to the API server.

The name of the kubeconfig user to use

See Also



June 2016, Ported from the Kubernetes man-doc generator

Referenced By


Explore man page connections for openshift-cli-adm-diagnostics(1).

Openshift Openshift CLI User Manuals June 2016