The diagnostics CLI command is used for collecting and uploading diagnostic data about clusters and hosts for analysis by the Weka Support and R&D Teams in order to help with troubleshooting. There are two relevant commands:
weka diags, used for cluster-wide diagnostics from any host in the cluster.
weka local diags, used for running diagnostics on a specific host, which should be used if the host cannot connect to the cluster.
weka [local] diags <--collect|--upload> [--pack-to dir]
This command creates diagnostics information about the Weka software and saves it for further analysis by the Weka Support team.
Information collection can be configured as follows:
If the command is run with the
local keyword, information is collected only from the host on which the command is executed. Otherwise, information is collected from the whole cluster. Additionally, when
weka local diags receives a directory using the
-o option, the diagnostics dump of the host is moved to that directory on completion of the collection process.
When running the command with the
--collect option, the information is saved to local files, and a list of the output files is provided. These files should be sent to the Weka Support Team for analysis. When running the command with the
--upload option, the information is uploaded to a Weka-owned S3 bucket, and an access identifier is provided as an output. This access identifier should be sent to the Weka Support Team, which will retrieve the information from the S3 bucket.
When using the -
-pack-to option, a single file is generated to the provided directory, as opposed to the default of creating a file per cluster host.