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

#!/bin/sh

mfiutil show volumes | grep mfid | tr -d '()'|awk '{print "- mfi.status." $1 " " $5}'
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}'