Skip to content

Commit e579532

Browse files
committed
Add script for showing ECC memory info
1 parent ca66ed0 commit e579532

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drivers/show_ecc_info.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env sh
2+
set -eu
3+
4+
# https://www.setphaserstostun.org/posts/monitoring-ecc-memory-on-linux-with-rasdaemon/
5+
6+
if ! command -v ras-mc-ctl 2>&1 >/dev/null; then
7+
echo "Rasdaemon seems not to be installed. Installing."
8+
apt-get update
9+
apt-get install rasdaemon
10+
systemctl enable rasdaemon
11+
systemctl start rasdaemon
12+
fi
13+
14+
# "To identify which DIMM slot corresponds to which EDAC path
15+
# you will have to reboot your system with only one DIMM inserted,
16+
# write down the name of the slot you insterted it in and then printing out the paths with ras-mc-ctl --error-count."
17+
ras-mc-ctl --print-labels
18+
19+
ras-mc-ctl --error-count

0 commit comments

Comments
 (0)