nsbin/get-sysinfo.sh
Nico Schottelius 844c1b8170 more cleanups
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-12-29 18:25:27 +01:00

30 lines
298 B
Bash
Executable file

#!/bin/sh
host="$(hostname)"
dest="${0%%*/}.${host}.log"
(
# log, what produced the output
cat "$0"
uname -a
dmesg
# pci stuff
lspci -nn
lspci -vv
# hw in total
lshw
# ram
free
# cpu
cat /proc/cpuinfo
# disk
mount
df -h
) 2>&1 | tee "$dest"