From 9c6dabff0152625918ec89d7fdd52dd4e248c484 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 16 Aug 2011 12:13:53 -0400 Subject: [PATCH] * dump out a bunch of info --- inventory/inventory.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 inventory/inventory.sh diff --git a/inventory/inventory.sh b/inventory/inventory.sh new file mode 100755 index 0000000..edd027a --- /dev/null +++ b/inventory/inventory.sh @@ -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