1NVME-CMDSET-IND-I(1) NVMe Manual NVME-CMDSET-IND-I(1)
2
3
4
6 nvme-cmdset-ind-id-ns - Send NVMe I/O Command Set Independent Identify
7 Namespace, return result and structure.
8
10 nvme cmdset-ind-id-ns <device> [--namespace-id=<nsid> | -n <nsid>]
11 [-b | --raw-binary]
12 [--human-readable | -H]
13 [--output-format=<fmt> | -o <fmt>]
14
16 For the NVMe device given, sends an I/O Command Set Independent
17 identify namespace command and provides the result and returned
18 structure.
19
20 The <device> parameter is mandatory and may be either the NVMe
21 character device (ex: /dev/nvme0), or a namespace block device (ex:
22 /dev/nvme0n1). If the character device is given, the '--namespace-id'
23 option is mandatory, otherwise it will use the ns-id of the namespace
24 for the block device you opened. For block devices, the ns-id used can
25 be overridden with the same option.
26
27 On success, the structure may be returned in one of several ways
28 depending on the option flags; the structure may be parsed by the
29 program or the raw buffer may be printed to stdout.
30
32 -n <nsid>, --namespace-id=<nsid>
33 Retrieve the identify namespace structure for the given nsid. This
34 is required for the character devices, or overrides the block nsid
35 if given.
36
37 -b, --raw-binary
38 Print the raw buffer to stdout. Structure is not parsed by program.
39 This overrides the vendor specific and human readable options.
40
41 -H, --human-readable
42 This option will parse and format many of the bit fields into
43 human-readable formats.
44
45 -o <format>, --output-format=<format>
46 Set the reporting format to normal, json, or binary. Only one
47 output format can be used at a time.
48
50 • Has the program interpret the returned buffer and display the known
51 fields in a human readable format:
52
53 # nvme cmdset-ind-id-ns /dev/nvme0n1
54
55 • If using the character device or overriding namespace id:
56
57 # nvme cmdset-ind-id-ns /dev/nvme0 -n 1
58 # nvme cmdset-ind-id-ns /dev/nvme0n1 -n 1
59 # nvme cmdset-ind-id-ns /dev/nvme0 --namespace-id=1
60
61 • Have the program return the raw structure in binary:
62
63 # nvme cmdset-ind-id-ns /dev/nvme0n1 --raw-binary > id_ns.raw
64 # nvme cmdset-ind-id-ns /dev/nvme0n1 -b > id_ns.raw
65
66 It is probably a bad idea to not redirect stdout when using this
67 mode.
68
70 Part of the nvme-user suite
71
72
73
74NVMe 09/29/2023 NVME-CMDSET-IND-I(1)