1

In CrystalDiskInfo, I can see how many GB have been written to an SSD. This is helpful to monitor its usage over time:

enter image description here

If possible, I would like to run a script automatically that pulls this information and keeps a log of it over time in a csv file. I could do this easily with Python if I had some way to pull that information from the command line.

Any thoughts on how I can get the total number of host writes on an SSD programmatically? I'm not sure how to access that number from the command line.

1 Answers1

1

Took them ten years, but as of 2020 CrystalDiskInfo supports command line pulling of disk information:

/Exit: Auto exit after updating S.M.A.R.T. information and AAM/APM status

/Copy: Output “Edit > Copy” result to DiskInfo.txt

/CopyExit: Output “Edit > Copy” result to DiskInfo.txt and auto exit

The last one gets you all the data as a text file. You can then pull the Total Host Writes from there with a few string manipulations, which shouldn't be difficult.

MiG
  • 1,130