25 lines
518 B
Bash
Executable File
25 lines
518 B
Bash
Executable File
#!/bin/bash
|
|
|
|
STAMP=$1
|
|
|
|
echo $STAMP
|
|
|
|
# mkdir $STAMP
|
|
lshw > $STAMP/lshw.out
|
|
cat /proc/cpuinfo > $STAMP/cpuinfo
|
|
cat /proc/meminfo > $STAMP/meminfo
|
|
cat /var/log/dmesg > $STAMP/dmesg.boot
|
|
dmesg > $STAMP/dmesg.current
|
|
lspci > $STAMP/lspci
|
|
df > $STAMP/df
|
|
ifconfig -a > $STAMP/ifconfig
|
|
route -n > $STAMP/route
|
|
netstat -n > $STAMP/netstat
|
|
ps auxwH -L kstart_time > $STAMP/ps
|
|
rpm -qa > $STAMP/rpminfo
|
|
dpkg -l > $STAMP/dpkginfo
|
|
lsmod > $STAMP/lsmod
|
|
cat /proc/partitions > $STAMP/partitions
|
|
|
|
./dmidecode.sh > $STAMP/dmidecode.all
|