1NVME-SMART-LOG(1) NVMe Manual NVME-SMART-LOG(1)
2
3
4
6 nvme-smart-log - Send NVMe SMART log page request, returns result and
7 log
8
10 nvme smart-log <device> [--namespace-id=<nsid> | -n <nsid>]
11 [--raw-binary | -b]
12 [--output-format=<fmt> | -o <fmt>]
13
15 Retrieves the NVMe SMART log page from an NVMe device and provides the
16 returned structure.
17
18 The <device> parameter is mandatory and may be either the NVMe
19 character device (ex: /dev/nvme0), or a namespace block device (ex:
20 /dev/nvme0n1).
21
22 On success, the returned smart log structure may be returned in one of
23 several ways depending on the option flags; the structure may parsed by
24 the program and printed in a readable format or the raw buffer may be
25 printed to stdout for another program to parse.
26
28 -n <nsid>, --namespace-id=<nsid>
29 Retrieve the SMART log for the given nsid. This is optional and its
30 success may depend on the device’s capabilities to provide this log
31 on a per-namespace basis (see the NVMe Identify Controller for this
32 capability). The default nsid to use is 0xffffffff for the device
33 global SMART log.
34
35 -b, --raw-binary
36 Print the raw SMART log buffer to stdout.
37
38 -o <format>, --output-format=<format>
39 Set the reporting format to normal, json, or binary. Only one
40 output format can be used at a time.
41
43 • Print the SMART log page in a human readable format:
44
45 # nvme smart-log /dev/nvme0
46
47 • Print the raw SMART log to a file:
48
49 # nvme smart-log /dev/nvme0 --raw-binary > smart_log.raw
50
51 It is probably a bad idea to not redirect stdout when using this
52 mode.
53
55 Part of the nvme-user suite
56
57
58
59NVMe 11/04/2022 NVME-SMART-LOG(1)