run long smart test on all drives
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 1 Oct 2011 10:57:27 +0000 (10:57 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 1 Oct 2011 10:57:27 +0000 (10:57 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@282 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/smart/smart-test-all.sh [new file with mode: 0755]

diff --git a/recepies/smart/smart-test-all.sh b/recepies/smart/smart-test-all.sh
new file mode 100755 (executable)
index 0000000..52c0994
--- /dev/null
@@ -0,0 +1 @@
+ls -d /sys/block/sd* | cut -d/ -f4 | xargs -i sh -cx "/usr/sbin/smartctl -t long /dev/{}"