Diagnostics data management
This page describes the diagnostics CLI commands used for collecting and uploading the diagnostics data.
The diagnostics CLI command is used for collecting and uploading diagnostic data about clusters, servers, and containers for analysis by the Customer Success Team to help troubleshoot. There are two relevant commands:
weka diags
: Run this command to get cluster-wide diagnostics from any server in the cluster. The command includes two options:upload
andcollect
(described in the following sections).weka local diags
: Run this command to get diagnostics on a specific server when it cannot connect to the cluster.
The weka local diags
command is useful in the following situations:
No functioning management process in the originating backend server or the specified backend servers.
No connectivity between the management process and the cluster leader.
The cluster has no leader.
The local container is down.
The server cannot reach the leader, or a remote server fails to respond to the
weka diags
remote command.
Upload diagnostics to Weka Home
Command: weka diags upload
Use the following command to collect diagnostics information, save it, and upload it to Weka Home (the Weka support cloud):
weka diags upload [--timeout timeout] [--core-limit core-limit] [--dump-id dump-id] [--container-id container-id]... [--clients]
The command response provides an access identifier, Diags collection ID
. Send this access identifier to the Customer Success Team for retrieving the information from the Weka Home.
When running the command for all servers in the cluster, a local diagnostics file is created in each server in the location /opt/weka/diags/local
. The local diagnostics file of each server is consolidated in a single diagnostics file in the server where you run the command in the /opt/weka/diags
directory.
Notes:
HTTPS access is required to upload the diagnostics to AWS S3 endpoints.
The upload process is asynchronous. Therefore, connectivity failure events are reflected in the events log even if the command exits successfully.
Parameters
Name | Type | Value | Limitations | Mandatory | Default |
| String | The maximum time available for uploading the diagnostics. | Format: 3s, 2h, 4m, 1d, 1d5h, 1w 0 is infinite | No | 10 minutes |
| Number | Limit the diagnostics collection process to use the specified core number. | No | 1 | |
| String | The ID of an existing diagnostics file (dump) to upload. | This dump ID has to exist on this local server | No | If an ID is not specified, a new dump is created |
| Comma-separated list of numbers | The container IDs to collect diagnostics from. | This flag causes | No | All containers |
| Boolean | Collect the diagnostics also from the clients. | No | No |
Collect diagnostics
Command: weka diags collect
Use the following command to create diagnostics information and save it without uploading it to Weka Home. This command is useful when there is no connection to Weka Home, and you want to share the diagnostics file using other options.
weka diags collect [--id id] [--timeout timeout] [--output-dir output-dir] [--core-limit core-limit] [--container-id container-id] [--clients] [--backends] [--tar]
If the command runs with the local
keyword, information is collected only from the server on which the command is executed. Otherwise, information is collected from the whole cluster.
Parameters
Name | Type | Value | Limitations | Mandatory | Default |
| String | Specified ID for this diagnostics file. | No | Auto-generated | |
| String | The maximum time available for collecting diagnostics from all servers. | Format: 3s, 2h, 4m, 1d, 1d5h, 1w 0 is infinite | No | 10 minutes |
| String | The directory for saving the diagnostics file. | No |
| |
| Number | Limit the diagnostics collection process to use the specified core number. | No | 1 | |
| Number | The container IDs to collect diagnostics from. It can be used multiple times. | If set, the system ignores the | No | |
| Boolean | Collect the diagnostics also from the clients. | If | No | No |
| Boolean | Collect the diagnostics from all backend containers and clients. | Use it combined with | No | No |
| Boolean | Package the collected diagnostics in a TAR file. | No | No |
Clean up the diagnostic files
When you collect diagnostics data using weka diags collect
, it creates a separate diagnostic file that consumes disk space. Therefore, the system may end up with many diagnostic files that are no longer required, for example, after uploading the diagnostic file to Weka Home. You can clean up a specified diagnostic file or a directory with multiple diagnostic files to free up space from the disk.
First, list the diagnostic files in the system and their IDs, then delete the specific diagnostic file according to its ID.
Warning: The diagnostic files are essential for troubleshooting purposes. Only delete these files if you are sure they are already uploaded to Weka Home and are no longer required. If you need clarification, contact the Customer Success Team.
List the diagnostic files
Command: weka diags list
Use the following command to list the collected diagnostic files:
weka diags list [--verbose] [<id>]...
Parameters
Name | Type | Value | Limitations | Mandatory | Default |
| String | The ID of the diagnostic file (dump) to display or a path to the location of the diagnostic files. A list of all the collected diagnostic files is shown if not specified. | No | Not specified | |
| Boolean | Displays the results of all the diagnostic files, including the successful ones. | No |
Delete a diagnostic file
Command: weka diags rm
Use the following command to stop a running diagnostics instance, cancel its upload, and delete it from the disk:
weka diags rm [--all] [<id>]...
Parameters
Name | Type | Value | Limitations | Mandatory | Default |
| Boolean | Delete all the diagnostic files. | No | ||
| String | The ID of the diagnostic file (dump) to delete or a path to the location of the diagnostic files. A list of all the collected diagnostic files is shown if not specified. | Yes, if the option |
Last updated