1NDCTL-INJECT-SMART(1) NDCTL-INJECT-SMART(1)
2
3
4
6 ndctl-inject-smart - perform smart threshold/injection operations on a
7 DIMM
8
10 ndctl inject-smart <dimm> [<options>]
11
13 A generic DIMM device object, named /dev/nmemX, is registered for each
14 memory device indicated in the ACPI NFIT table, or other platform
15 NVDIMM resource discovery mechanism.
16
17 ndctl-inject-smart can be used to set smart thresholds, and inject
18 smart attributes.
19
21 Set smart controller temperature and spares threshold for DIMM-0 to
22 32C, spares threshold to 8, and enable the spares alarm.
23
24 ndctl inject-smart --ctrl-temperature-threshold=32 --spares-threshold=8 --spares-alarm nmem0
25
26 Inject a media temperature value of 52 and fatal health status flag for
27 DIMM-0
28
29 ndctl inject-smart --media-temperature=52 --health=fatal nmem0
30
32 -b, --bus=
33 A bus id number, or a provider string (e.g. "ACPI.NFIT"). Restrict
34 the operation to the specified bus(es). The keyword all can be
35 specified to indicate the lack of any restriction, however this is
36 the same as not supplying a --bus option at all.
37
38 -m, --media-temperature=
39 Inject <value> for the media temperature smart attribute.
40
41 -M, --media-temperature-threshold=
42 Set <value> for the smart media temperature threshold.
43
44 --media-temperature-alarm=
45 Enable or disable the smart media temperature alarm. Options are on
46 or off.
47
48 --media-temperature-uninject
49 Uninject any media temperature previously injected.
50
51 -c, --ctrl-temperature=
52 Inject <value> for the controller temperature smart attribute.
53
54 -C, --ctrl-temperature-threshold=
55 Set <value> for the smart controller temperature threshold.
56
57 --ctrl-temperature-alarm=
58 Enable or disable the smart controller temperature alarm. Options
59 are on or off.
60
61 --ctrl-temperature-uninject
62 Uninject any controller temperature previously injected.
63
64 -s, --spares=
65 Inject <value> for the spares smart attribute.
66
67 -S, --spares-threshold=
68 Set <value> for the smart spares threshold.
69
70 --spares-alarm=
71 Enable or disable the smart spares alarm. Options are on or off.
72
73 --spares-uninject
74 Uninject any spare percentage previously injected.
75
76 -f, --fatal
77 Set the flag to spoof fatal health status.
78
79 --fatal-uninject
80 Uninject the fatal health status flag.
81
82 -U, --unsafe-shutdown
83 Set the flag to spoof an unsafe shutdown on the next power down.
84
85 --unsafe-shutdown-uninject
86 Uninject the unsafe shutdown flag.
87
88 -N, --uninject-all
89 Uninject all possible smart fields/values irrespective of whether
90 they have been previously injected or not.
91
92 -v, --verbose
93 Emit debug messages for the error injection process
94
95 -u, --human
96 Format numbers representing storage sizes, or offsets as human
97 readable strings with units instead of the default machine-friendly
98 raw-integer data. Convert other numeric fields into hexadecimal
99 strings.
100
102 Copyright © 2016 - 2022, Intel Corporation. License GPLv2: GNU GPL
103 version 2 http://gnu.org/licenses/gpl.html. This is free software: you
104 are free to change and redistribute it. There is NO WARRANTY, to the
105 extent permitted by law.
106
108 linkndctl:ndctl-list[1],
109
110
111
112 01/13/2023 NDCTL-INJECT-SMART(1)