NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
eton
May 25, 2015Luminary
Generate HDD reports?
How can I generate HDD reports of the type shown in this post? Without downloading all logs within Frontview. Tried that and got a 340 MB large file with all kinds of stuff. I just want to view my ...
eton
May 27, 2015Luminary
Danthem wrote: Sent it to Eton in PM but might as well post it here as well, for Sparc - go for something like this instead: for i in a b c d e f h i j k; do smartctl -a /dev/hd${i} | egrep -i "Device Model|Serial Number|Reallocated_sec|ATA Er|offline_uncorrect|current_pending_sector|Power_on";done
Thanks! That one works. It's only missing the table headline row (ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE).
And yes the problem was that step values used in Danthem's first script are not supported until Bash version 4. But it might be doable with seq and awk etc.
# echo $BASH_VERSION
2.05b.0(1)-release
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!