ndctl−inject−smart − perform smart threshold/injection operations on a DIMM
ndctl inject−smart <dimm> [<options>]
A generic DIMM device object, named /dev/nmemX, is registered for each memory device indicated in the ACPI NFIT table, or other platform NVDIMM resource discovery mechanism.
ndctl−inject−smart can be used to set smart thresholds, and inject smart attributes.
Set smart controller temperature and spares threshold for DIMM−0 to 32C, spares threshold to 8, and enable the spares alarm.
ndctl inject−smart −−ctrl−temperature−threshold=32 −−spares−threshold=8 −−spares−alarm nmem0
Inject a media temperature value of 52 and fatal health status flag for DIMM−0
ndctl inject−smart −−media−temperature=52 −−health=fatal nmem0
Enforce that the operation only be carried on devices that are attached to the given bus. Where bus can be a provider name or a bus id number.
Inject for the media temperature smart attribute.
Set for the smart media temperature threshold.
Enable or disable the smart media temperature alarm. Options are on or off.
Uninject any media temperature previously injected.
Inject for the controller temperature smart attribute.
Set for the smart controller temperature threshold.
Enable or disable the smart controller temperature alarm. Options are on or off.
Uninject any controller temperature previously injected.
Inject for the spares smart attribute.
Set for the smart spares threshold.
Enable or disable the smart spares alarm. Options are on or off.
Uninject any spare percentage previously injected.
Set the flag to spoof fatal health status.
Uninject the fatal health status flag.
Set the flag to spoof an unsafe shutdown on the next power down.
Uninject the unsafe shutdown flag.
Uninject all possible smart fields/values irrespective of whether they have been previously injected or not.
Emit debug messages for the error injection process
Format numbers representing storage sizes, or offsets as human readable strings with units instead of the default machine−friendly raw−integer data. Convert other numeric fields into hexadecimal strings.
Copyright (c) 2016 − 2019, Intel Corporation. License GPLv2: GNU GPL version 2 http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.