setparameter
Use the setparameter command to set the system parameters.
Syntax
Parameters
- -help | -h | -?
- Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
- -quiet
- Suppresses the confirmation prompt for this command. This flag answers yes to all confirmation prompts.
- -parm {lsheartbeat | - chheartbeat { on | off } | -}
- Specifies one of these system parameters:
- lsheartbeat
- Displays whether the Metro Mirror heartbeat is enabled.
- chheartbeat { on | off }
- Specifies whether the Metro Mirror heartbeat is enabled (on) or not enabled (off).
Alternatively, use the dash (-) to specify that input for this parameter comes from an input stream (stdin). The dash is supported only in single-shot mode.
Example: Listing the Metro Mirror heartbeat status
The following command displays whether the Metro Mirror heartbeat is enabled or disabled.
csmcli> setparameter -parm lsheartbeat
The following output is returned:
The heartbeat function is set on. IWNR1208I The heartbeat was retrieved successfully.
Example: Enabling the Metro Mirror heartbeat
The following command turns on the Metro Mirror heartbeat.
csmcli> setparameter -parm chheartbeat on
The following output is returned:
IWNR1204I The heartbeat has been successfully turned on with the hardware.