Code: Select all
uname -a|awk '{print $1,$2,$4}'; isi_for_array -s "isi_hw_status|grep SerNo"; isi_for_array -s isi_radish -a /dev/ad*|egrep 'SN:|Percent Life'|grep -v Used|sed -e 's/Percent Life Remaining:/PercentLifeRemaining %/' -e 's/Percent Lifetime Left:/PercentLifeRemaining %/' -e 's/is .*//'|awk '{print $1,$2,$3, sprintf("%d","0x"$8 )}'|sed -e 's/% 0/%0/' -e 's/ 0//'