#!/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