1
0

sos-linux 617 B

123456789101112131415161718192021222324252627282930313233
  1. #! /bin/sh
  2. me="`basename $0`"
  3. outf="$HOME/sos-linux-`date +%Y%m%d-%H%M%S`.out"
  4. if test "`whoami`" != "root"; then
  5. echo "$me: please run $me as root" 1>&2
  6. exit 1
  7. fi
  8. echo "$me: output file is $outf"
  9. exec > $outf
  10. exec 2>&1
  11. set -x
  12. uname -a
  13. grep . /etc/*release*
  14. find /sys/module/aoe -name version | xargs cat
  15. cat /proc/mounts
  16. aoe-version
  17. aoe-stat
  18. cat /proc/mdstat
  19. pvs
  20. ifconfig -a
  21. free
  22. dmesg | tail -n 50
  23. lspci
  24. grep . /sys/block/etherd\!e*.*/debug
  25. set +x
  26. for i in `aoe-stat | awk '{print $3}' | sed 's!,! !g'`; do
  27. echo ethtool -S $i
  28. done | sort | uniq | sh -x
  29. # top -b -n 1
  30. grep . /sys/block/etherd*/debug /dev/null