From 5cc3a10703f9bd1f84a0e4eae2324cc84c202f72 Mon Sep 17 00:00:00 2001 From: haturatu Date: Thu, 5 Dec 2024 03:02:45 +0900 Subject: smi --- pnd.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pnd.sh b/pnd.sh index 8aedca5..089f20c 100755 --- a/pnd.sh +++ b/pnd.sh @@ -11,6 +11,8 @@ for cmd in "${commands[@]}"; do fi done +SMI=$(dmidecode) + # サーバー情報の出力 echo -e "## CPU情報" grep "model name" /proc/cpuinfo | head -1 @@ -25,9 +27,9 @@ echo -e "\n## リッスンポート" lsof -i -P -n -l | grep "LISTEN" | awk '{print $1 "," $3 "," $9 "/" $8}' | sort | uniq | column -t -s "," echo -e "\n## ハードウェア情報" -dmidecode | grep -A 8 "System Information" +echo "$SMI" | grep -A 8 "System Information" echo -dmidecode | grep -A 4 "DDR" +echo "$SMI" | grep -A 4 "DDR" echo -e "\n## BIOS情報" -dmidecode | grep -A 27 "BIOS Information" +echo "$SMI" | grep -A 27 "BIOS Information" -- cgit v1.2.3