Skip to main content

addhsp command

Use the addhsp command to assign the drive as hot spare.

addhsp command syntax

Usage: ./OneCli [misc] raid addhsp <--drive|-d <arg>> [--bmc|-b <arg>]
[--ctrl <arg>] [--target|-t <arg>]
[--dg <arg>] [--force]
[--check-trust|-C] [--never-check-trust|-N]
[--quiet|-q] [--output|-o <arg>]
[--nolog] [--config <arg>]
[--help|-h]
Table 1. addhsp command specific parameters
ParameterRequired/OptionalNotes
--ctrlOptional

Specify controller ID starting with index 1.

Example: --ctrl 1.

--drive, -dOptional

Specify target drive ID.

The arguments can be grouped in multiple targets and separated by commas.

If it is not specified, it means all.

--dgOptional

Specify drive groups.

The argument can be specified multiple targets by commas.If it is specified, it means assigning the drive as dedicated hot spare.If it is not specified, it means assigning the drive as a global hot spare.

--target, -tOptional (Deprecated from V3.5.1)

It is recommended to use the --ctrl option instead.

Specify the target controller ID. The following is the description on ID:
  • 1: ctrl[1]

  • m2/m.2: Single m.2 raid

  • m2-1/m.2-1: Multi m.2 raid

The argument can be specified to multiple targets by comma. If not specified, it means all.

Example of the addhsp command

OneCli.exe misc raid addhsp --target 0 --drive 0 --bmc userid:password@host