scripts/mfi_status
author Tomas Zeman <tzeman@volny.cz>
Mon, 07 Apr 2014 14:54:26 +0200
changeset 32 e119fde089b8
permissions -rwxr-xr-x
scripts/mfi_status
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32
e119fde089b8 scripts/mfi_status
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     1
#!/bin/sh
e119fde089b8 scripts/mfi_status
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     2
e119fde089b8 scripts/mfi_status
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     3
mfiutil show volumes | grep mfid | tr -d '()'|awk '{print "- mfi.status." $1 " " $5}'
e119fde089b8 scripts/mfi_status
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     4
mfiutil show drives | tail -n +2 | tr -d '()' | sed -e 's/HOT /HOT_/' -e 's/UNCONFIGURED /UNCONFIGURED_/' | awk '{print $3}'|sort | uniq -c | awk '{print "- mfi.drives." $2 " " $1}'