Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 757 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 757 Bytes

linux-vm-diagnostics

Bash script to pull diagnostic information from Linux VMs for troubleshooting and compress for sharing - optionally uploads to workspace with azcopy.

screen

Usage

  • Curl, verify the script contents and run:
curl https://raw.githubusercontent.com/jameswylde/linux-vm-diagnostics/main/diag.sh > diag.sh
sudo bash diag.sh
  • or if you've verified the contents of the script and are happy to proceed:
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/jameswylde/linux-vm-diagnostics/main/diag.sh)"

Collects:

  • system info
  • /var/log in full
  • iostat over 5min
  • sar over 5min
  • top for CPU and mem over 5min

Optionally uploads to Azure workspace with SASURI.