The tungsten_send_diag Command
The tungsten_send_diag command is a utility script which assists in the upload of files to Continuent support.
tungsten_send_diag may be used in place of the tpm diag to generate a diagnostic package.
tungsten_send_diag [option]
Where:
| Option | Description | Version |
|---|---|---|
--argsAliases: -a | Specify arguments to be passed to tpm diag. Arguments must be passed in quotes. Requires the --diag option. | |
--caseAliases: -c | Specify the support case number. If case number not know, you must supply --email. | |
--cleanup | When specified, will cause the removal of the diagnostic archive file generated by the --diag argument. | 7.0.0 |
--contenttype | Specify the Content-Type for a file you are uploading. Automatically detected by default. Valid: application/zip, binary/octect-stream | |
--debugAliases: -d | Debug mode is VERY chatty, avoid it unless you really need it. | |
--diagAliases: -d | Automatically generate a tpm diag zip file and upload it. Cannot be used with --file. Not required if --tpm specified. | |
--emailAliases: -e | Email address to embed into the uploaded file name. | |
--fileAliases: -f | File name to upload. Canot be used with --diag or --tpm. | |
--helpAliases: -h | Show help text. | |
--keyAliases: -k | Specify Tungsten-provided AWS Access key. | 7.2.0 |
--secretAliases: -s | Specify Tungsten-provided AWS Secret key. | 7.2.0 |
--tpmAliases: -t | Full path to the tpm command you wish to use to execute a tpm diag. If this option supplied, a diag will be collected and the use of --diag is not required. | |
--verboseAliases: -v | Show verbose output. |
You must specify either --diag, --tpm, or --file, but not more than one. For example:
shell> tungsten_send_diag --diag -c 1234
To have tpm diag gather all nodes, add --args '--all', for example:
shell> tungsten_send_diag --diag -c 1234 --args '--all'
You must specify either --email or --case, and you may provide both if you wish. For example:
shell> tungsten_send_diag -f example.zip -e you@yourdomain.com -c 1234
Using --tpm to specify one or more tpm commands implies the --diag option, you do not
need to specify --diag if you use --tpm (or -t). For example:
shell> tungsten_send_diag -c 1234 -t /opt/replicator/tungsten/tools/tpm
You may generate multiple diags by specifying multiple tpm binaries with multiple arguments, i.e.:
shell> tungsten_send_diag -c 1234 -t /opt/continuent/tungsten/tools/tpm -t /opt/replicator/tungsten/tools/tpm
Updating tungsten_send_diag
If you are unable to use tungsten_send_diag due to network rules and restrictions within your organisation,
then you do not need to complete these steps.
Continuent is committed to implementing security best practices. To safeguard your uploaded diagnostic data, we routinely rotate
the access keys used for upload functionality in our products. As a result, we regularly release a new version of
tungsten_send_diag outside of our normal software release cycle.
Updated releases are made available via the download portal
To install the new file:
Download the latest file from the download portal.
Upload the file to all hosts running Tungsten software. A good suggestion would be to place the file into
$HOMEpath of the tungsten OS user.Ensure the ownership of the file is correct
shell> sudo chown tungsten: tungsten_send_diagCopy the new
tungsten_send_diagfile to the running directory tree.Determine the running directory location, normally the
/opt/continuentdirectory.The value of the running directory location is determined by either option
install-directorywithin your/etc/tungsten/tungsten.inifile.Another way to easily determine the running directory location is to check the value of the shell variable
$CONTINUENT_ROOTas the tungsten OS user, for example:shell> su - tungstenshell> echo $CONTINUENT_ROOT/opt/continuentCopy the file to the running path of the Tungsten deployment determined above:
shell> su - tungstenshell> cp ~/tungsten_send_diag /opt/continuent/tungsten/tungsten-replicator/binCopy the new
tungsten_send_diagfile to the software staging directory tree.NoteThis step will ensure that the new version of
tungsten_send_diagis preserved should you execute./tools/tpm update --replace-releasefrom the staging directory during subsequent updates.Determine the software staging directory, which by default would be under
/opt/continuent/software/. If unsure, the value of this is determined by executingtpm query staging, for example:shell> tpm query stagingtungsten@db1:/opt/continuent/software/tungsten-clustering-8.0.4-132For convenience, you can display only the needed staging directory path:
shell> tpm query staging | cut -d: -f2/opt/continuent/software/tungsten-clustering-8.0.4-132Now copy the file to the software staging path determined above:
shell> cp ~/tungsten_send_diag /opt/continuent/software/tungsten-clustering-8.0.4-132/tungsten-replicator/bin/
If upgrading to a new version of Tungsten that does not include the latest version of tungsten_send_diag, the above steps
will need to be carried out post upgrade.