File: sos-linux

package info (click to toggle)
aoetools 26-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 224 kB
  • ctags: 140
  • sloc: ansic: 773; sh: 477; makefile: 64
file content (33 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh

me="`basename $0`"
outf="$HOME/sos-linux-`date +%Y%m%d-%H%M%S`.out"

if test "`whoami`" != "root"; then
	echo "$me: please run $me as root" 1>&2
	exit 1
fi
echo "$me: output file is $outf"

exec > $outf
exec 2>&1
set -x
uname -a
grep . /etc/*release*
find /sys/module/aoe -name version | xargs cat
cat /proc/mounts
aoe-version
aoe-stat
cat /proc/mdstat
pvs
ifconfig -a
free
dmesg | tail -n 50
lspci
grep . /sys/block/etherd\!e*.*/debug
set +x
for i in `aoe-stat | awk '{print $3}' | sed 's!,! !g'`; do
	echo ethtool -S $i
done | sort | uniq | sh -x
# top -b -n 1
grep . /sys/block/etherd*/debug /dev/null