Skip to content

Instantly share code, notes, and snippets.

@anilyadav
Forked from tzach/collect-runtime-info.sh
Created November 20, 2017 13:06
Show Gist options
  • Save anilyadav/6a4ba07c730a08da85145196a4ca1ead to your computer and use it in GitHub Desktop.
Save anilyadav/6a4ba07c730a08da85145196a4ca1ead to your computer and use it in GitHub Desktop.
#!/bin/bash -e
mkdir report
rpm -qa > ./report/rpm.txt
journalctl -b > ./report/journalctl.txt
df -k > ./report/df.txt
netstat > ./report/netstat.txt
sar -P ALL > ./report/sar.txt
iostat -d 1 10 > ./report/iostat.txt
sudo perf record --call-graph dwarf -C 0 -F 99 -p $(ps -C scylla -o pid --no-headers) -g --output ./report/perf.data sleep 10
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