Created
December 14, 2015 11:22
-
-
Save tzach/03e23eb56b64e1f143c8 to your computer and use it in GitHub Desktop.
collect information from a server, compress and upload to s3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Can't edit original)
Due to the new node_health_check.sh the steps should looks like this: