How to collect a support bundle
The Swarm Support Tools bundle is essential for all users of Swarm products. It contains scripts for many purposes. Inside the bundle are support scripts as well as PDFs describing in detail how to use them:
Tech-Support-Scripts-Bundle.pdf
Tech-Support-Scripts-Bundle-swarmctl.pdf
The primary tool in this bundle is the script techsupport-bundle-grab.sh
. The script snapshots the Swarm configuration and logs data into a tarball and attaches it to a support ticket to assist in troubleshooting.
Creating a support bundle
The best practice is to proactively collect and upload a support bundle with relevant technical information when a support ticket is opened with DataCore Support. Create a tarball by running the techsupport-bundle-grab.sh
command from the extracted tools bundle.
Follow the process below to provide the support bundle when an issue is raised with DataCore Support:
Open a support ticket and note the ticket number (such as
220331-000023
) to use when uploading files.Download the bundle: swarm-support-tools.tgz
CLI download command example:
cd /root curl -fO https://support.cloud.datacore.com/tools/swarm-support-tools.tgz
Extract the tools in the
/root
directory on the server (CSN, Elasticsearch, SwarmNFS, or Gateway).CLI extraction command example:
tar -xf swarm-support-tools.tgz
Navigate to the tools directory, which is usually
/root/dist
.cd /root/dist
If using CentOS 7, please see here before continuing: Workaround for CentOS 7 EOL repo closures
Recommended: Update the support bundle
Check the version by viewing the contents of the REVISION.txt file:
Update the bundle to the current version:
Execute the script:
Standard bundle grab:
If your Swarm cluster is configured with an administrative user that is not “admin”, then you will need to also include the -U <admin username> like so:
This username and password is for the Swarm cluster itself, and are not necessarily the same credentials configured to access the Swarm UI/ Content Portal as that uses a policy configured on the Content Gateway in policy.json/ idsys.json.
Presuming a current version (post 2023_0825) of the support tools (see updateBundle.sh above), and internet connectivity from the server that is running the techsupport-bundle-grab.sh script, the
-u [ticketid]
flag can be used to automatically upload the bundle output to the support ticket. This will automatically update the ticket and let Datacore Support know. Example:
Note the name and location of the tarball created by the script.
Uploading the bundle (internet access)
Upload directly from a server with internet access:
Type the following to enable the 'uploadtosupport' function in the local shell:
Type the following to upload the bundle to DataCore Support. You may include the ticket number as a second argument or it will ask you for that value.
Enter the ticket number when prompted if not already specified in the command.
The uploader automatically adds the bundle to the ticket and notifies DataCore Support. There is no need to email DataCore Support or make any changes to the ticket.
Reminder that you can achieve the same effect by using the
-u [ticketid]
flag when creating the bundle like so:./techsupport-bundle-grab.sh -u [ticketid]
Uploading the bundle (no internet access)
The file needs to be moved to a location with internet access if the local server does not have access to the internet.
Securely connect (such as with WinSCP) to the server (CSN or other product) from an accessible location.
Download the latest support bundle.
Browse to the Uploader URL: https://support.cloud.datacore.com/tools/uploader
Upload the bundle from the download location.
Enter the ticket number when prompted for a client name and ticket number.
The uploader automatically adds the bundle to the ticket and notifies DataCore Support. There is no need to email DataCore Support or make any changes to the ticket.
© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.