summaryrefslogtreecommitdiffstats
path: root/completions/_nvme
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_nvme')
-rw-r--r--completions/_nvme332
1 files changed, 278 insertions, 54 deletions
diff --git a/completions/_nvme b/completions/_nvme
index 159a4ab..47fdd9d 100644
--- a/completions/_nvme
+++ b/completions/_nvme
@@ -56,7 +56,7 @@ _nvme () {
'set-property:writes and shows the defined NVMe controller property for NVMe over Fabric'
'get-property:Reads and shows the defined NVMe controller property for NVMe over Fabric'
'format:apply new block format to namespace'
- 'fw-activate:activate a firmware on the device'
+ 'fw-commit:verify and commit firmware to a specific slot (fw-activate in old version < 1.2)'
'fw-download:download a firmware to the device'
'admin-passthru:submit a passthrough admin command IOCTL'
'io-passthru:submit a passthrough io command IOCTL'
@@ -97,6 +97,7 @@ _nvme () {
'disconnect-all:disconnect from all connected NVMeoF subsystems'
'gen-hostnqn:generate a host NVMe Qualified Name'
'show-hostnqn:show the host NQN configured for the system'
+ 'tls-key:manipulate NVMeoF TLS PSK'
'dir-receive:read directive parameters of the specified directive type'
'dir-send:set directive parameters of the specified directive type'
'virt-mgmt:submit a Virtualization Management command'
@@ -105,10 +106,13 @@ _nvme () {
'nvme-mi-recv:send a NVMe-MI receive command'
'nvme-mi-send:send a NVMe-MI send command'
'get-reg:read and show the defined NVMe controller register'
- 'set-seg:write and show the defined NVMe controller register'
+ 'set-reg:write and show the defined NVMe controller register'
+ 'io-mgmt-recv:send an I/O management receive command'
+ 'io-mgmt-send:send an I/O management send command'
'version:show the program version'
'ocp:OCP cloud SSD extensions'
'solidigm:Solidigm plug-in extensions'
+ 'micron:Micron plug-in extensions'
'help:print brief descriptions of all nvme commands'
'json:dump output in json format'
)
@@ -176,12 +180,18 @@ _nvme () {
local _internal_log
_internal_log=(
/dev/nvme':supply a device to use (required)'
- --telemetry_type=':Telemetry Type; host (Create bit) or controller'
- -t':alias for --telemetry_type'
- --telemetry_data_area=':Telemetry Data Area; 1 or 3'
- -a':alias for --telemetry_data_area'
+ --telemetry-type=':Telemetry Type; host or controller generated'
+ -t':alias for --telemetry-type'
+ --data-area=':Telemetry Data Area; 1 or 2'
+ -a':alias for --data-area'
--output-file=':Output file name with path'
-o':alias for --output-file'
+ --telemetry-log=':Telemetry log binary'
+ -l':alias for --telemetry-log'
+ --string-log=':String log binary'
+ -s':alias for --string-log'
+ --output-format':Output format: normal|json'
+ -f':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp internal-log options" _internal_log
@@ -256,6 +266,20 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp set-dssd-power-state-feature options" _set_dssd_power_state_feature
;;
+ (get-dssd-power-state-feature)
+ local _get_dssd_power_state_feature
+ _get_dssd_power_state_feature=(
+ /dev/nvme':supply a device to use (required)'
+ --sel=':select from 0 - current, 1 - default, 2 - saved, 3 - supported'
+ -S':alias to --sel'
+ --all=':Print out all 3 values at once - current, default, and saved'
+ -a':alias to --all'
+ --no-uuid':Skip UUID index search'
+ -n':alias for --no-uuid'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme ocp get-dssd-power-state-feature options" _get_dssd_power_state_feature
+ ;;
(telemetry-string-log)
local _telemetry_string_log
_telemetry_string_log=(
@@ -289,6 +313,51 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp get-dssd-async-event-config options" _get_dssd_async_event_config
;;
+ (tcg-configuration-log)
+ local _ocp_tcg_configuration_log
+ _ocp_tcg_configuration_log=(
+ /dev/nvme':supply a device to use (required)'
+ --output-format=':Output format: normal|json'
+ -o':alias for --output-format'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme ocp tcg-configuration-log options" _ocp_tcg_configuration_log
+ ;;
+ (get-error-injection)
+ local _get_error_injection
+ _get_error_injection=(
+ /dev/nvme':supply a device to use (required)'
+ --sel=':0-3: current/default/saved/supported/changed:'
+ -s':alias for --sel'
+ --no-uuid':Skip UUID index search'
+ -n':alias for --no-uuid'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme ocp get-error-injection options" _get_error_injection
+ ;;
+ (set-error-injection)
+ local _set_error_injection
+ _set_error_injection=(
+ /dev/nvme':supply a device to use (required)'
+ --data=':Error injection data structure entries'
+ -d':alias for --data'
+ --number=':Number of valid error injection data entries'
+ -n':alias for --number'
+ --no-uuid':Skip UUID index search'
+ -N':alias for --no-uuid'
+ --type=':Error injection type'
+ -t':alias for --type'
+ --nrtdp=':Number of reads to trigger device panic'
+ -r':alias for --nrtdp'
+ --verbose':Increase the information detail in the output.'
+ -v':alias for --verbose'
+ --output-format=':Output format: normal|json|binary'
+ -o ':alias for --output-format'
+ --timeout=':value for timeout'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme ocp set-error-injection options" _set_error_injection
+ ;;
(*)
_files
;;
@@ -336,16 +405,10 @@ _nvme () {
(vs-internal-log)
local _vs_internal_log
_vs_internal_log=(
- --type':Log type: ALL,
- CONTROLLERINITTELEMETRY,
- HOSTINITTELEMETRY,
- HOSTINITTELEMETRYNOGEN, NLOG,
- ASSERT, EVENT. Defaults to ALL.'
+ --type':Log type: ALL, CIT, HIT, NLOG, ASSERT, EVENT. Defaults to ALL.'
-t':alias for --type'
- --namespace-id':Namespace to get logs from.'
- -n':alias for --namespace-id'
- --dir-prefix':Output dir prefix; defaults to device serial number.'
- -p':alias for --dir-prefix'
+ --dir-name':Output directory; defaults to current working directory.'
+ -d':alias for --dir-name'
--verbose':To print out verbose info.'
-v':alias for --verbose'
)
@@ -393,24 +456,24 @@ _nvme () {
local _parse_telemetry_log
_parse_telemetry_log=(
--host-generate':Controls when to generate new
- host initiated report. Default
- value '1' generates new host
- initiated report, value '0'
- causes retrieval of existing
- log.'
+ host initiated report. Default
+ value '1' generates new host
+ initiated report, value '0'
+ causes retrieval of existing
+ log.'
-g':alias for --host-generate'
--controller-init':Gather report generated by the controller.'
-c':alias for --controller-init'
--data-area':Pick which telemetry data area to
- report. Default is 3 to fetch
- areas 1-3. Valid options are 1,
- 2, 3, 4.'
+ report. Default is 3 to fetch
+ areas 1-3. Valid options are 1,
+ 2, 3, 4.'
-d':alias for --data-area'
--config-file':JSON configuration file'
-j':alias for --config-file'
--source-file':data source <device> is binary
- file containing log dump instead
- of block or character device'
+ file containing log dump instead
+ of block or character device'
-s':alias for --source-file'
)
_arguments '*:: :->subcmds'
@@ -592,6 +655,8 @@ _nvme () {
-a':alias of --all'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list-ns options" _listns
@@ -974,6 +1039,8 @@ _nvme () {
-n':alias to --namespace-id'
--raw-binary':dump infos in binary format'
-b':alias to --raw-binary'
+ --verbose':show infos verbosely'
+ -v':alias to --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme smart-log options" _smartlog
@@ -1028,6 +1095,8 @@ _nvme () {
-b':alias to --raw-binary'
--csi=':command set identifier'
-c':alias of --csi'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme effects-log options" _effects_log
@@ -1105,6 +1174,8 @@ _nvme () {
--cdw11=':dword 11 value, used for interrupt vector configuration only'
--raw-binary':dump infos in binary format'
-b':alias to --raw-binary'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme get-feature options" _getf
@@ -1119,6 +1190,8 @@ _nvme () {
-s':alias for --self-test-code'
--wait':Wait for the test to finish'
-w':alias to --wait'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme device-self-test options" _device_self_test
@@ -1151,6 +1224,8 @@ _nvme () {
-s':alias of --scp'
--uuid=':UUID Index field required aligned with Scope'
-U':alias of --uuid'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme lockdown options" _lockdown
@@ -1171,6 +1246,8 @@ _nvme () {
-V'alias to --value'
--uuid-index=':uuid index'
-U':alias for --uuid-index'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme set-feature options" _setf
@@ -1183,6 +1260,8 @@ _nvme () {
-O':alias to --offset'
--value=':the value of the property to be set'
-V':alias to --value'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme set-property options" _set_property
@@ -1195,6 +1274,8 @@ _nvme () {
-O':alias to --offset'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme get-property options" _get_property
@@ -1221,17 +1302,19 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme format options" _format
;;
- (fw-activate)
- local _fwact
- _fwact=(
+ (fw-commit)
+ local _fw_commit
+ _fw_commit=(
/dev/nvme':supply a device to use (required)'
--action=':activation action (required)? 0 - replace fw without activating, 1 - replace with activation, 2 - replace with activation at next reset'
-a':alias of --action'
--slot=':firmware slot to activate'
-s':alias of --slot'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
- _describe -t commands "nvme fw-activate options" _fwact
+ _describe -t commands "nvme fw-commit options" _fw_commit
;;
(fw-download)
local _fwd
@@ -1243,13 +1326,15 @@ _nvme () {
-x':alias of --xfer'
--offset=':starting offset, in dwords (defaults to 0, only useful if download is split across multiple files)'
-O':alias of --offset'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme fw-download options" _fwd
;;
(capacity-mgmt)
- local _fwd
- _fwd=(
+ local _capacity_mgmt
+ _capacity_mgmt=(
/dev/nvme':supply a device to use (required)'
--operation=':Operation to be performed by the controller'
-O':alias of --operation'
@@ -1259,9 +1344,11 @@ _nvme () {
-l':alias of --cap-lower'
--cap-upper=':Most significant 32 bits of the capacity in bytes'
-u':alias of --cap-upper'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
- _describe -t commands "nvme capacity-mgmt options" _fwd
+ _describe -t commands "nvme capacity-mgmt options" _capacity_mgmt
;;
(write-zeroes)
local _write_zeroes
@@ -1295,6 +1382,8 @@ _nvme () {
-C':alias of --storage-tag-check'
--dir-spec=':directive specific'
-D':alias of --dir-spec'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme write-zeroes options" _write_zeroes
@@ -1313,6 +1402,8 @@ _nvme () {
-T':alias of --dir-type'
--dir-spec':directive specific'
-S':alias of --dir-spec'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme write-uncor options" _write_uncor
@@ -1343,6 +1434,8 @@ _nvme () {
-S':alias of --storage-tag'
--storage-tag-check':Storage Tag field shall be checked as part of end-to-end data protection processing'
-C':alias of --storage-tag-check'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme verify options" _verify
@@ -1553,6 +1646,7 @@ _nvme () {
-s':alias for --spsp'
--tl=':transfer length as defined in SPC-4'
-t':alias for --tl'
+ --timeout=':value for timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme security-send options" _ssend
@@ -1571,6 +1665,8 @@ _nvme () {
-a':alias for --al'
--raw-binary':dump output in binary format'
-b':alias for --raw-binary'
+ --timeout=':value for timeout'
+ -t':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme security-recv options" _srecv
@@ -1613,6 +1709,7 @@ _nvme () {
-i':alias for --iekey'
--crkey':current reservation key'
-c':alias for --crkey'
+ --timeout=':value for timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme resv-acquire options" _acq
@@ -1629,6 +1726,7 @@ _nvme () {
-a':alias of --rrela'
--iekey':ignore existing reservation key'
-i':alias of --iekey'
+ --timeout=':value for timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme resv-release options" _rel
@@ -1645,6 +1743,8 @@ _nvme () {
-e':alias of --eds'
--raw-binary':dump output in binary format'
-b':alias of --raw-binary'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme resv-report options" _rep
@@ -1665,6 +1765,8 @@ _nvme () {
-r':alias for --rrega'
--iekey':ignore existing reservation key'
-i':alias for --iekey'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme resv-register options" _reg
@@ -1689,6 +1791,8 @@ _nvme () {
-r':alias of --idr'
--cdw11=':value for command dword 11'
-c':alias for --cdw11'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme dsm options" _dsm
@@ -1729,10 +1833,12 @@ _nvme () {
-S':alias of --dir-spec'
--format=':source range entry format'
-F':alias of --format'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
- _describe -t commands "nvme copy options" _copy
- ;;
+ _describe -t commands "nvme copy options" _copy
+ ;;
(flush)
local _flush
_flush=(
@@ -1771,6 +1877,9 @@ _nvme () {
-V':alias of --show-command'
--dry-run':show command instead of sending to device'
-w':alias of --show-command'
+ --latency':latency statistics will be output following compare'
+ -t':alias of --latency'
+ --timeout=':value for timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme compare options" _comp
@@ -1807,6 +1916,7 @@ _nvme () {
-V':alias of --show-command'
--dry-run':show command instead of sending to device'
-w':alias of --show-command'
+ --timeout=':value for timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme read options" _read
@@ -1843,6 +1953,7 @@ _nvme () {
-V':alias of --show-command'
--dry-run':show command instead of sending to device'
-w':alias of --show-command'
+ --timeout=':value for timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme write options" _wr
@@ -1851,6 +1962,8 @@ _nvme () {
local _shor
_shor=(
/dev/nvme':supply a device to use (required)'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme show-regs options" _shor
@@ -1907,7 +2020,6 @@ _nvme () {
--duplicate-connect':allow duplicate connections between same transport host and subsystem port'
-D':alias for --duplicate-connect'
--disable-sqflow':disable controller sq flow control (default false)'
- -d':alias for --disable-sqflow'
--hdr-digest':enable transport protocol header digest (TCP transport)'
-g':alias for --hdr-digest'
--data-digest':enable transport protocol data digest (TCP transport)'
@@ -1920,7 +2032,6 @@ _nvme () {
--persistent':'
-p':alias for --'
--quiet':'
- -S':alias for --'
--config=':Use specified JSON configuration file or none to disable'
-J':alias for --config'
--verbose':Increase logging verbosity'
@@ -1979,7 +2090,6 @@ _nvme () {
--duplicate-connect':allow duplicate connections between same transport host and subsystem port'
-D':alias for --duplicate-connect'
--disable-sqflow':disable controller sq flow control (default false)'
- -d':alias for --disable-sqflow'
--hdr-digest':enable transport protocol header digest (TCP transport)'
-g':alias for --hdr-digest'
--data-digest':enable transport protocol data digest (TCP transport)'
@@ -1992,7 +2102,6 @@ _nvme () {
--persistent':'
-p':alias for --'
--quiet':'
- -S':alias for --'
--config=':Use specified JSON configuration file or none to disable'
-J':alias for --config'
--verbose':Increase logging verbosity'
@@ -2049,7 +2158,6 @@ _nvme () {
--duplicate-connect':allow duplicate connections between same transport host and subsystem port'
-D':alias for --duplicate-connect'
--disable-sqflow':disable controller sq flow control (default false)'
- -d':alias for --disable-sqflow'
--hdr-digest':enable transport protocol header digest (TCP transport)'
-g':alias for --hdr-digest'
--data-digest':enable transport protocol data digest (TCP transport)'
@@ -2122,6 +2230,28 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme show-hostnqn options" _show_hostnqn
;;
+ (tls-key)
+ local _tls_key
+ _tls_key=(
+ --verbose':show infos verbosely'
+ -v':alias of --verbose'
+ --output-format=':Output format: normal|json|binary'
+ -o':alias for --output-format'
+ --keyring=':name for keyring'
+ -r':alias for --keyring'
+ --keytype=':type for the key'
+ -t':alias for --keytype'
+ --keyfile='filename for reading/writing keys from'
+ -f':alias for --keyfile'
+ --import'import all keys into keyring'
+ -i':alias for --import'
+ --export'export all keys from keyring'
+ -e':alias for --export'
+ --revoke='revoke key from keyring'
+ -r':alias for --revoke'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme tls-key options" _tls_key
(dir-receive)
local _dir_receive
_dir_receive=(
@@ -2142,6 +2272,8 @@ _nvme () {
-r':alias of --req-resource'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme dir-receive options" _dir_receive
@@ -2170,6 +2302,8 @@ _nvme () {
-b':alias for --raw-binary'
--input-file=':write/send file (default stdin)'
-i':alias of --input-file'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme dir-send options" _dir_send
@@ -2186,6 +2320,8 @@ _nvme () {
-a':alias of --act'
--nr=':Number of Controller Resources(NR)'
-n':alias of --nr'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme virt-mgmt options" _virt_mgmt
@@ -2230,6 +2366,7 @@ _nvme () {
(nvme-mi-recv)
local _nvme_mi_recv
_nvme_mi_recv=(
+ /dev/nvme':supply a device to use (required)'
--opcode=':NVMe-MI opcode to send'
-O':alias of --opcode'
--namespace-id=':value for nsid'
@@ -2251,6 +2388,7 @@ _nvme () {
(nvme-mi-send)
local _nvme_mi_send
_nvme_mi_send=(
+ /dev/nvme':supply a device to use (required)'
--opcode=':NVMe-MI opcode to send'
-O':alias of --opcode'
--namespace-id=':value for nsid'
@@ -2272,6 +2410,7 @@ _nvme () {
(get-reg)
local _get_reg
_get_reg=(
+ /dev/nvme':supply a device to use (required)'
--offset=':offset of the requested register'
-O':alias for --offset'
--human-readable':show register in readable format'
@@ -2308,6 +2447,8 @@ _nvme () {
-o ':alias for --output-format'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme get-reg options" _get_reg
@@ -2315,6 +2456,7 @@ _nvme () {
(set-reg)
local _set_reg
_set_reg=(
+ /dev/nvme':supply a device to use (required)'
--offset=':offset of the requested register'
-O':alias for --offset'
--value=':the value of the register to be set'
@@ -2340,10 +2482,60 @@ _nvme () {
-o ':alias for --output-format'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme set-reg options" _set_reg
;;
+ (io-mgmt-recv)
+ local _io_mgmt_recv
+ _io_mgmt_recv=(
+ /dev/nvme':supply a device to use (required)'
+ --namespace-id=':identifier of desired namespace'
+ -n':alias for --namespace-id'
+ --mos=':management operation specific'
+ -s':alias for --mos'
+ --mo=':management operation'
+ -m':alias for --mo'
+ --data=':optional file for data (default stdout)'
+ -d':alias for --data'
+ --data-len=':buffer len (if) data is received'
+ -l':alias for --data-len'
+ --output-format=':Output format: normal|json|binary'
+ -o ':alias for --output-format'
+ --verbose':Increase the information detail in the output.'
+ -v':alias for --verbose'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme set-reg options" _io_mgmt_recv
+ ;;
+ (io-mgmt-send)
+ local _io_mgmt_send
+ _io_mgmt_send=(
+ /dev/nvme':supply a device to use (required)'
+ --namespace-id=':identifier of desired namespace'
+ -n':alias for --namespace-id'
+ --mos=':management operation specific'
+ -s':alias for --mos'
+ --mo=':management operation'
+ -m':alias for --mo'
+ --data=':optional file for data (default stdin)'
+ -d':alias for --data'
+ --data-len=':buffer len (if) data is sent'
+ -l':alias for --data-len'
+ --output-format=':Output format: normal|json|binary'
+ -o ':alias for --output-format'
+ --verbose':Increase the information detail in the output.'
+ -v':alias for --verbose'
+ --timeout=':value for timeout'
+ -t':alias of --timeout'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme set-reg options" _io_mgmt_send
+ ;;
(version)
local _version
_version=(
@@ -2364,8 +2556,12 @@ _nvme () {
vs-fw-activate-history':Get firmware activation history log'
device-capability-log':Get Device capability log'
set-dssd-power-state-feature':Set DSSD Power State'
+ get-dssd-power-state-feature':Get DSSD Power State'
telemetry-string-log':Retrieve Telemetry string Log Page'
set-telemetry-profile':Set Telemetry Profile'
+ tcg-configuration-log':tcg configuration log'
+ get-error-injection':get error injection'
+ set-error-injection':set error injection'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp options" _ocp
@@ -2394,24 +2590,52 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm options" _solidigm
;;
+ (micron)
+ local micron
+ _micron=(
+ select-download':Selective Firmware Download'
+ vs-temperature-stats':Retrieve Micron temperature statistics'
+ vs-pcie-stats':Retrieve Micron PCIe error stats'
+ clear-pcie-correctable-errors':Clear correctable PCIe errors'
+ vs-internal-log':Retrieve Micron logs'
+ vs-telemetry-controller-option':Enable/Disable controller telemetry log generation'
+ vs-nand-stats':Retrieve NAND Stats'
+ vs-smart-ext-log':Retrieve extended SMART logs'
+ vs-drive-info':Retrieve Drive information'
+ plugin-version':Display plugin version info'
+ cloud-SSD-plugin-version':Display plugin version info'
+ log-page-directory':Retrieve log page directory'
+ vs-fw-activate-history':Display FW activation history'
+ latency-tracking':Latency monitoring feature control'
+ latency-stats':Latency information for tracked commands'
+ latency-logs':Latency log details tracked by drive'
+ vs-smart-add-log':Retrieve extended SMART data'
+ clear-fw-activate-history':Clear FW activation history'
+ vs-smbus-option':Enable/Disable SMBUS on the drive'
+ ocp-telemetry-log-parse':Parse OCP Telemetry DA1 and DA2 logs'
+ help':Display this help'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme micron options" _micron
+ ;;
(help)
local _h
_h=( id-ctrl id-ns list-ns id-iocs create-ns delete-ns attach-ns detach-ns
- list-ctrl get-ns-id get-log fw-log smart-log error-log get-feature
- set-feature format fw-activate fw-download admin-passthru io-passthru
- security-send security-recv resv-acquire resv-register resv-release
- resv-report flush compare read write copy show-regs persistent-event-log
- pred-lat-event-agg-log nvm-id-ctrl endurance-event-agg-log lba-status-log
- resv-notif-log capacity-mgmt id-domain boot-part-log fid-support-effects-log
- supported-log-pages lockdown media-unit-stat-log id-ns-lba-format nvm-id-ns
- nvm-id-ns-lba-format supported-cap-config-log show-topology
- list list-subsys id-ns-granularity primary-ctrl-caps list-secondary ns-descs
- id-nvmset id-uuid list-endgrp telemetry-log changed-ns-list-log ana-log
- effects-log endurance-log device-self-test self-test-log set-property
- get-property write-zeroes write-uncor verify sanitize sanitize-log reset
- subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
- dim disconnect disconnect-all gen-hostnqn show-hostnqn dir-receive dir-send
- virt-mgmt rpmb version ocp solidigm
+ list-ctrl get-ns-id get-log fw-log smart-log error-log get-feature
+ set-feature format fw-activate fw-download admin-passthru io-passthru
+ security-send security-recv resv-acquire resv-register resv-release
+ resv-report flush compare read write copy show-regs persistent-event-log
+ pred-lat-event-agg-log nvm-id-ctrl endurance-event-agg-log lba-status-log
+ resv-notif-log capacity-mgmt id-domain boot-part-log fid-support-effects-log
+ supported-log-pages lockdown media-unit-stat-log id-ns-lba-format nvm-id-ns
+ nvm-id-ns-lba-format supported-cap-config-log show-topology
+ list list-subsys id-ns-granularity primary-ctrl-caps list-secondary ns-descs
+ id-nvmset id-uuid list-endgrp telemetry-log changed-ns-list-log ana-log
+ effects-log endurance-log device-self-test self-test-log set-property
+ get-property write-zeroes write-uncor verify sanitize sanitize-log reset
+ subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
+ dim disconnect disconnect-all gen-hostnqn show-hostnqn tls-key dir-receive
+ dir-send virt-mgmt rpmb version ocp solidigm
)
_arguments '*:: :->subcmds'
_describe -t commands "help: infos on a specific nvme command, or provide no option to see a synopsis of all nvme commands" _h