Skip to content

Instantly share code, notes, and snippets.

@tzach
Created July 26, 2016 14:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tzach/b2cf347a198e63939643a1af910b036e to your computer and use it in GitHub Desktop.
Save tzach/b2cf347a198e63939643a1af910b036e 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
@glommer
Copy link

glommer commented Aug 18, 2016

Sorry I haven't looked at that before, Tzach.

I think iostat should include at least the -x option.
Without -x, we usually don't have important information such as service time and wait times.

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