NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Sandshark
Dec 24, 2020Sensei
Script for making remote NAS diagnostics available locally
StephenB suggested starting this. Obviously, it's for advanved users with at least some Linux experience. I have one main NAS, two local backup NAS, and a remote backup NAS. Since the backup de...
StephenB
Dec 25, 2020Guru - Experienced User
I haven't installed hdsentinal, so I'll need to take a look at that.
You can get quite a bit of info with smartctl (including stuff that isn't in the log zip), and I was thinking about using that.
This gives you a lot of info on the installed disks:
for i in a b c d e f g h i j k l m n; do smartctl -a -x -l defects /dev/sd${i} | egrep -v "local build|No such device|smartmontools"; done >>smart.log
Though if you want to be more selective on the smart stats you can also do something like
for i in a b c d e f g h i j k l m n; do smartctl -a /dev/sd${i} | egrep -i "Device Model|Serial Number|Reallocated_sec|ATA Er|offline_uncorrect|current_pending_sector|Power_on"; done >>smart.log
tailoring the egrep string to include the specific parameters you want to track. mdgm suggested this version to me a few years ago now (it is also handy in tech support mode).
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!