CXL-SET-ALERT-CONFIG(1) | cxl Manual | CXL-SET-ALERT-CONFIG(1) |
NAME¶
cxl-set-alert-config - set the warning alert threshold on a CXL memdev
SYNOPSIS¶
cxl set-alert-config <mem0> [<mem1>..<memN>] [<options>]
DESCRIPTION¶
CXL device raises an alert when its health status is changed. Critical alert shall automatically be configured by the device after a device reset. If supported, programmable warning thresholds also be initialized to vendor recommended defaults, then could be configured by the user.
Use this command to configure warning alert thresholds of a device. Having issued this command, the newly requested warning thresholds would override the previously programmed warning thresholds.
To enable warning alert, set both threshold=value and alert=on. To disable warning alert, set only alert=off. Other cases would cause errors.
Use "cxl list -m <memdev> -A" to examine the programming warning threshold capabilities of a device.
EXAMPLES¶
Set warning threshold to 30 and enable alert for life used.
# cxl set-alert-config mem0 --life-used-threshold=30 --life-used-alert=on { "memdev":"mem0", "ram_size":"1024.00 MiB (1073.74 MB)", "alert_config":{ "life_used_prog_warn_threshold_valid":true, "dev_over_temperature_prog_warn_threshold_valid":false, "dev_under_temperature_prog_warn_threshold_valid":false, "corrected_volatile_mem_err_prog_warn_threshold_valid":false, "corrected_pmem_err_prog_warn_threshold_valid":false, "life_used_prog_warn_threshold_writable":true, "dev_over_temperature_prog_warn_threshold_writable":true, "dev_under_temperature_prog_warn_threshold_writable":true, "corrected_volatile_mem_err_prog_warn_threshold_writable":true, "corrected_pmem_err_prog_warn_threshold_writable":true, "life_used_crit_alert_threshold":75, "life_used_prog_warn_threshold":30, "dev_over_temperature_crit_alert_threshold":0, "dev_under_temperature_crit_alert_threshold":0, "dev_over_temperature_prog_warn_threshold":0, "dev_under_temperature_prog_warn_threshold":0, "corrected_volatile_mem_err_prog_warn_threshold":0, "corrected_pmem_err_prog_warn_threshold":0 }, "serial":"0", "host":"0000:0d:00.0" } cxl memdev: cmd_set_alert_config: set alert configuration 1 mem
Disable warning alert for life_used.
# cxl set-alert-config mem0 --life-used-alert=off { "memdev":"mem0", "ram_size":"1024.00 MiB (1073.74 MB)", "alert_config":{ "life_used_prog_warn_threshold_valid":false, "dev_over_temperature_prog_warn_threshold_valid":false, "dev_under_temperature_prog_warn_threshold_valid":false, "corrected_volatile_mem_err_prog_warn_threshold_valid":false, "corrected_pmem_err_prog_warn_threshold_valid":false, "life_used_prog_warn_threshold_writable":true, "dev_over_temperature_prog_warn_threshold_writable":true, "dev_under_temperature_prog_warn_threshold_writable":true, "corrected_volatile_mem_err_prog_warn_threshold_writable":true, "corrected_pmem_err_prog_warn_threshold_writable":true, "life_used_crit_alert_threshold":75, "life_used_prog_warn_threshold":30, "dev_over_temperature_crit_alert_threshold":0, "dev_under_temperature_crit_alert_threshold":0, "dev_over_temperature_prog_warn_threshold":0, "dev_under_temperature_prog_warn_threshold":0, "corrected_volatile_mem_err_prog_warn_threshold":0, "corrected_pmem_err_prog_warn_threshold":0 }, "serial":"0", "host":"0000:0d:00.0" } cxl memdev: cmd_set_alert_config: set alert configuration 1 mem
OPTIONS¶
<memory device(s)>
-S, --serial
-L, --life-used-threshold=
--life-used-alert=
-O, --over-temperature-threshold=
--over-temperature-alert=
-U, --under-temperature-threshold=
--under-temperature-alert=
-V, --volatile-mem-err-threshold=
--volatile-mem-err-alert=
-P, --pmem-err-threshold=
--pmem-err-alert=
-v, --verbose
SEE ALSO¶
CXL-3.0 8.2.9.8.3.3
2024-10-10 | cxl |