Skip to content

Instantly share code, notes, and snippets.

@tzach
Created December 14, 2015 11:22
Show Gist options
  • Select an option

  • Save tzach/03e23eb56b64e1f143c8 to your computer and use it in GitHub Desktop.

Select an option

Save tzach/03e23eb56b64e1f143c8 to your computer and use it in GitHub Desktop.
collect information from a server, compress and upload to s3
mkdir report
rpm -qa > ./report/rpm.txt
journalctl -b > ./report/journalctl.txt
df -k > ./report/df.txt
netstat > ./report/netstat.txt
export report_uuid=$(uuidgen)
tar c report | xz > report.tar.xz
curl --request PUT --upload-file report.tar.xz "scylladb-users-upload.s3.amazonaws.com/$report_uuid/report.tar.xz"
echo $report_uuid
@tomer-sandler
Copy link

tomer-sandler commented May 7, 2017

(Can't edit original)
Due to the new node_health_check.sh the steps should looks like this:

mkdir report
cd report
run node_health_check script from Master (https://github.com/scylladb/scylla/blob/master/dist/common/scripts/node_health_check) until it will be included in Scylla pkgs
cd ..
tar c report | xz > report.tar.xz
export report_uuid=$(uuidgen)
curl --request PUT --upload-file report.tar.xz "scylladb-users-upload.s3.amazonaws.com/$report_uuid/report.tar.xz"
echo $report_uuid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment