report smart for whole cluster
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 14 Jan 2018 13:23:40 +0000 (14:23 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 14 Jan 2018 13:23:40 +0000 (14:23 +0100)
gnt-smart.sh

index 958375d..959b36a 100755 (executable)
@@ -1,3 +1,5 @@
 #!/bin/sh -e
 
-ls /dev/sd? | xargs -i sh -ec 'echo -n "{}\t" ; smartctl -l selftest {} | grep "^# 1"'
+cp /srv/gnt-info/smart-megaraid.sh /tmp/
+gnt-cluster copyfile /tmp/smart-megaraid.sh
+gnt-cluster command -M /tmp/smart-megaraid.sh