edgarsuit / FreeNAS-Report

SMART & ZPool Status Report for FreeNAS
GNU General Public License v3.0
113 stars 45 forks source link

RC12.0 $scrubDate: awk fields #17

Closed Scoindy closed 4 years ago

Scoindy commented 4 years ago

looks like the output of zpool status has changed slightly on the version of BSD that comes with 12,0; statusDate just needs to chnage slightly from:

scrubDate="$(echo "$statusOutput" | grep "scan" | awk '{print $17"-"$14"-"$15"_"$16}')"

to

scrubDate="$(echo "$statusOutput" | grep "scan" | awk '{print $15"-"$12"-"$13"_"$14}')"

thanks for the script BTW!

Scoindy commented 4 years ago

sorry just noticed this is a duplicate.