Web lists-archives.com

Re: OT: Current_Pending_Sector on /dev/sd?






./check_smart.pl -g /dev/sd[a-z] -i ata
OK: [/dev/sda] - Device is clean|

Is it ok that is only return one drive?

you have to use double-quotes because it's a regular _expression_ within the perl plugin:

./check_smart -g "/dev/sd[a-z]" -i ata
OK: [/dev/sda] - Device is clean --- [/dev/sdb] - Device is clean --- [/dev/sdc] - Device is clean --- [/dev/sdd] - Device is clean|

But this is the variant for "lazy admins". ;-)
I suggest you use it on a single drive to obtain more information (performance data).
Example:

./check_smart -d "/dev/sda" -i ata
OK: no SMART errors detected. |Raw_Read_Error_Rate=0 Spin_Up_Time=4000 Start_Stop_Count=30 Reallocated_Sector_Ct=0 Seek_Error_Rate=0 Power_On_Hours=18183 Spin_Retry_Count=0 Calibration_Retry_Count=0 Power_Cycle_Count=30 Power-Off_Retract_Count=20 Load_Cycle_Count=249397 Temperature_Celsius=32 Reallocated_Event_Count=0 Current_Pending_Sector=0 Offline_Uncorrectable=0 UDMA_CRC_Error_Count=0 Multi_Zone_Error_Rate=0

You can now parse these values and save it wherever you need to create a history of the drive's SMART values.