Windows sends get-SMART-log command to NVME SSD every 65 minutes, how to stop it?

shanhung_hsu 0 Reputation points
2024-09-27T09:14:44.84+00:00

I am a SSD company employee, from our SSD we can see every 65 minutes Windows OS sends a get-SMART-log command to NVME SSD. For testing purpose we want to temporarily stop it, how to do?

p.s. I opened Windows Event Log and saw nvme driver is storNVME

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,710 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
122 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 10,205 Reputation points
    2024-09-27T12:28:18.5666667+00:00

    Hello

    To temporarily stop the get-SMART-log command to your NVMe SSD in Windows OS with the storNVME driver, you can follow these steps:

     

    Identify the Controller Data Structure: Issue an Identify command with CNS=0x01 to retrieve the Controller data structure. This command should complete with a good status. You can read the Identify Controller to determine the supported log page attributes and the number of namespaces.

     

    Issue a Get Log Page Command: Issue a Get Log Page command with LID=0x02. If the Identify Controller indicates that LPA=1 (supports the SMART/Health information log page on a per namespace) and the namespace is valid, the command should complete with a good status. If LPA=0 (does not support the SMART/Health information log page on a per namespace) and the namespace is non-global, the command should complete with status Invalid Field in Command.

     

    Use PowerShell Scripts: You can use PowerShell scripts to issue NVMe commands to the NVMe drive using Windows' inbox NVMe device driver. For example, you can use the get-smart-log.ps1 script to get S.M.A.R.T. log data. You can find these scripts in the nvmetool-win-powershell repository on GitHub.

    GitHub - ken-yossy/nvmetool-win-powershell: Sample script of accessing NVMe drive using Windows' inbox NVMe driver

     

    Modify the StorNVMe Driver: The StorNVMe driver supports various commands, and you can modify its behavior by using the appropriate IOCTL commands. For more information, you can refer to the StorNVMe Command Set Support documentation on Microsoft Learn.

    StorNVMe Command Set Support - Windows drivers | Microsoft Learn


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.