_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp set-error-injection options" _set_error_injection
;;
+ (hardware-component-log)
+ local _hardware_component_log
+ _hardware_component_log=(
+ /dev/nvme':supply a device to use (required)'
+ --comp-id=':component identifier'
+ -i':alias for --comp-id'
+ --list':list component descriptions'
+ -v':alias for --list'
+ --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'
+ -t ':alias for --timeout'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme ocp hardware-component-log options" _hardware_component_log
+ ;;
(*)
_files
;;
tcg-configuration-log':tcg configuration log'
get-error-injection':get error injection'
set-error-injection':set error injection'
+ hardware-component-log':retrieve hardware component log'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp options" _ocp
opts+=" --data= -d --number= -n --no-uuid -N --type= -t \
--nrtdp= -r --verbose -v --output-format -o --timeout="
;;
+ "hardware-component-log")
+ opts+=" --comp-id= -i --list -l --verbose -v \
+ --output-format -o --timeout= -t"
+ ;;
"help")
opts+=$NO_OPTS
;;
set-dssd-power-state-feature get-dssd-power-state-feature \
telemetry-string-log set-telemetry-profile \
set-dssd-async-event-config get-dssd-async-event-config \
- get-error-injection set-error-injection"
+ get-error-injection set-error-injection \
+ hardware-component-log"
)
# Associative array mapping plugins to corresponding option completions