System & Hardware-Infos
CPU
Anzahl CPU
grep "physical id" /proc/cpuinfo | sort | uniq | wc -l
Anzahl Core
grep "cpu cores" /proc/cpuinfo | uniq | xargs | cut -f4 -d" "
Anzahl Thread
grep "^processor" /proc/cpuinfo | wc -l
OS
Volle Infos :
cat /etc/os-release
Kurz Infos:
cat /etc/redhat-release cat /etc/debian_version
Servername
uname -n
Memory
Memory
grep MemTotal /proc/meminfo | awk '{print $2 / 1024}' totalmem=0; for mem in /sys/devices/system/memory/memory*; do [[ "$(cat ${mem}/online)" == "1" ]] && totalmem=$((totalmem+$((0x$(cat /sys/devices/system/memory/block_size_bytes))))); done; echo $((totalmem/1024**3)) GB
Memory - physische
echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024))) dmidecode -t 17 | grep "Size:" | awk '{s += $2} END {print s / 1024}' vmstat -s | grep "total memory" | awk '{print $1 / 1024 / 1024}'
Memory - virtuell
echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
Filesystem
lsblk -l lsblk -l | grep -v "NAME" | awk '{ printf $1 " - " $4 "|" }'
NICs
ip a | egrep "mtu|inet " ip -o addr show | egrep -v " lo|inet6" | awk '{ printf $2 " - " $4 " | " }'
Weitere Infos
dmidecode -t system dmidecode -s system-product-name lspci | grep -i vmware dmidecode | less