Jump to content

MiniSMART v0.2


ripdad
 Share

Recommended Posts

I couldn't resist making a S.M.A.R.T. script using WMIC. It gave me something to do over the holidays.

1) This will only give SMART data for the main drive. (ie: C:\)

2) It will most likely Not give data on Raided or USB drives.

3) It only shows pertinent data columns and ignores all others.

4) It should be good enough for a quick glance and an example how to parse WMIC output.

Download:  _MiniSmart v0.2.au3

 

WD_80GB.png

 

Edited by ripdad

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

"C:\Users\Owner\Downloads\_MiniSmart.au3" (41) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
$aSMART[$n][0] = Number($a[$i])
^ ERROR

SSD as C:\ drive 

Hard Disk Number,0
Interface,"S-ATA Gen3, 6 Gbps"
Hard Disk Model ID,Crucial_CT120M500SSD1
Firmware Revision,MU03
Active  Checksum  ErrorLogCapability  ExtendedPollTimeInMinutes  InstanceName                                                        Length  OfflineCollectCapability  OfflineCollectionStatus  Reserved                              SelfTestStatus  ShortPollTimeInMinutes  SmartCapability  TotalTime  VendorSpecific                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               VendorSpecific2  VendorSpecific3  VendorSpecific4                                                                                                                                                                                                                                                                                                                                                                          
TRUE    160       1                   9                          SCSI\Disk&Ven_Crucial_&Prod_Crucial_CT120M50\4&38fbd192&0&000000_0  512     123                       128                      {3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}  0               2                       3                555        {16, 0, 1, 47, 0, 100, 100, 8, 0, 0, 0, 0, 0, 0, 5, 51, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 9, 50, 0, 100, 100, 81, 5, 0, 0, 0, 0, 0, 12, 50, 0, 100, 100, 69, 0, 0, 0, 0, 0, 0, 171, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 172, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 173, 50, 0, 81, 81, 74, 2, 0, 0, 0, 0, 0, 174, 50, 0, 100, 100, 35, 0, 0, 0, 0, 0, 0, 180, 51, 0, 0, 0, 198, 7, 0, 0, 0, 0, 0, 183, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 184, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 187, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 194, 34, 0, 70, 59, 30, 0, 0, 0, 41, 0, 0, 196, 50, 0, 100, 100, 16, 0, 0, 0, 0, 0, 0, 197, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 198, 48, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 199, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 202, 49, 0, 81, 81, 19, 0, 0, 0, 0, 0, 0, 206, 14, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 210, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 246, 50, 0, 100, 100, 133, 226, 35, 243, 6, 0, 0, 247, 50, 0, 100, 100, 73, 70, 46, 3, 0, 0, 0, 248, 50, 0, 100, 100, 160, 240, 106, 219, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}  0                0                {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

so you can troubleshoot :) 

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

1 minute ago, ripdad said:

ok, try it now.

Row|Col 0|Col 1|Col 2|Col 3|Col 4|Col 5
[0]|Attribute|Raw/Value|Cycles|VSD1|SumCounts|AttributeName
[1]|1|8|0|0|0|ReadErrorRate
[2]|5|0|0|0|0|ReallocatedSectorsCount/SSDRetiredBlockCount
[3]|9|81|5|0|1361|PowerOnHours(POH)
[4]|12|69|0|0|69|PowerCycleCount
[5]|171|0|0|0|0|SSDProgramFailBlockCount
[6]|172|0|0|0|0|SSDEraseFailBlockCount
[7]|173|74|2|0|586|SSDWearLevelingCount
[8]|174|35|0|0|35|SSDUnexpectedPowerLossCount
[9]|180|198|7|0|1990|BlockCountTotal/SSDUnusedReservedBlockCount
[10]|183|0|0|0|0|SATADownshiftErrorCount/SSDRuntimeBadBlock
[11]|184|0|0|0|0|EndtoEnderror
[12]|187|0|0|0|0|ReportedUncorrectableErrors/SSDUncorrectableErrorCount
[13]|194|30|0|0|30C/86F|Temperature
[14]|196|16|0|0|16|ReallocationEventCount
[15]|197|0|0|0|0|CurrentPendingSectorCount
[16]|198|0|0|0|0|UncorrectableSectorCount/SSDOffLineUncorrectableErrorCount
[17]|199|0|0|0|0|UltraDMACRCErrorCount/SSDCRCErrorCount
[18]|202|19|0|0|0|DataAddressMarkErrors
[19]|206|0|0|0|0|FlyingHeight
[20]|210|0|0|0|0|VibrationDuringWrite
[21]|246|18|112|83|0|(Unknown Attribute)
[22]|247|20|198|47|0|(Unknown Attribute)
[23]|248|137|162|112|0|(Unknown Attribute)

:D

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Good!
One more item I have to work on - the Drive Model.
Those strings are not consistent.

I will have to change the code for something more suitable.
Maybe tomorrow.

 

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...