* dump out a bunch of info

This commit is contained in:
Jeff Carr 2011-08-16 12:13:53 -04:00
parent d37d092aa5
commit 9c6dabff01
1 changed files with 18 additions and 0 deletions

18
inventory/inventory.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
STAMP=`date -u +%Y.%m%d.%H%M`
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