summaryrefslogtreecommitdiff
path: root/pnd.sh
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2024-12-05 02:51:13 +0900
committerhaturatu <taro@eyes4you.org>2024-12-05 02:51:13 +0900
commit66781cfe0733a01212892886fc5428f8d66ab1a7 (patch)
tree0e8d339915a73e12d4425c12e820913c3e282eec /pnd.sh
parent0981dfe8eef53544153274c885fe62773814f7b4 (diff)
update
Diffstat (limited to 'pnd.sh')
-rwxr-xr-xpnd.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/pnd.sh b/pnd.sh
index 5b8dc72..8aedca5 100755
--- a/pnd.sh
+++ b/pnd.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# 必要なコマンドのリスト
-commands=("grep" "awk" "df" "lsof" "sort" "uniq" "column")
+commands=("grep" "awk" "df" "lsof" "sort" "uniq" "column" "dmidecode")
# コマンドの存在確認
for cmd in "${commands[@]}"; do
@@ -23,3 +23,11 @@ df -h
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
+dmidecode | grep -A 4 "DDR"
+
+echo -e "\n## BIOS情報"
+dmidecode | grep -A 27 "BIOS Information"