| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | #! /bin/shme="`basename $0`"outf="$HOME/sos-`hostname`-`date +%Y%m%d-%H%M%S`.txt"if test "`whoami`" != "root"; then	echo "$me: please run $me as root" 1>&2	exit 1fiecho "$me: output file is $outf"exec > $outfexec 2>&1set -xuname -agrep . /etc/*release* /etc/*version* | sed 50qfind /sys/module/aoe -name version | xargs catcat /proc/mountsaoe-versionaoe-statcat /proc/mdstatpvsifconfig -afreedmesg | tail -n 50lspciset +xfor i in `aoe-stat | awk '{print $3}' | sed 's!,! !g'`; do	echo ethtool -S $idone | sort | uniq | sh -x# top -b -n 1# check for old-style sysfs-exported debug information, ignoring errorsgrep . /sys/block/etherd*/debug /dev/null# check for new-style debugfs-exported debug information, ignoring errorsdmnt=/sys/kernel/debugdidmount=mounted=`awk '$3=="debugfs"{print $2}' /proc/mounts`if test "x$mounted" = "x" && mount -t debugfs none "$dmnt"; then	didmount="$dmnt"	mounted="$dmnt"ficd "$mounted"/aoe && grep . e[0-9]*.*[0-9]cd /if test "x$didmount" != "x"; then	umount "$didmount"fiexit 0
 |