ESXi SMART disk status

From snippet wiki
Jump to navigation Jump to search

First list the disk labels you have locally:

esxcli storage core device list

Note the first non indented long name of a disk and use this as id attribute (that is a one liner!):

esxcli storage core device smart get -d=t10.ATA_____ST4000VN0082D2DR166__________________________________ZGY8YHT6

As a result you will get something like this list:

Parameter                          Value  Threshold  Worst  Raw
---------------------------------  -----  ---------  -----  ---
Health Status                      OK     N/A        N/A    N/A
Read Error Count                   79     6          64     35
Power-on Hours                     91     0          91     106
Power Cycle Count                  100    20         100    10
Reallocated Sector Count           100    10         100    0
Drive Temperature                  40     0          50     40
Write Sectors TOT Count            100    0          253    191
Read Sectors TOT Count             100    0          253    111
Initial Bad Block Count            100    0          100    0
Uncorrectable Error Count          100    0          100    0
Pending Sector Reallocation Count  100    0          100    0
Uncorrectable Sector Count         100    0          100    0