diff options
author | haturatu <taro@eyes4you.org> | 2024-12-05 03:02:45 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-12-05 03:02:45 +0900 |
commit | 5cc3a10703f9bd1f84a0e4eae2324cc84c202f72 (patch) | |
tree | f32b0e72a151a2c3bae78fc909ef9a80c4d434ad /pnd.sh | |
parent | 66781cfe0733a01212892886fc5428f8d66ab1a7 (diff) |
Diffstat (limited to 'pnd.sh')
-rwxr-xr-x | pnd.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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" |