Skip to content

Bash script to pull diagnostic information from Linux servers for troubleshooting - optionally uploads to workspace with azcopy

Notifications You must be signed in to change notification settings

jameswylde/linux-diagnostics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

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.

About

Bash script to pull diagnostic information from Linux servers for troubleshooting - optionally uploads to workspace with azcopy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages