nsbin/get-sysinfo.sh
Nico Schottelius b99e5f9c7a alot of smaller changes
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-08-14 14:04:06 +02:00

28 lines
273 B
Bash
Executable file

#!/bin/sh
host="$(hostname)"
dest="${0%%*/}.${host}.log"
(
# system / software
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"