Get Alert Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get Alert Configuration
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to query alert reporting parameters.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 4 | Sub command: subcommand = 16h |
| 5 | Destination Selector The value ranges from 1 to 5. For a non-server configuration, set this parameter to 0xff. |
| 6 | Alert parameter. For details, see Table 1. |
| 7 | Block Selector (00h if parameter does not require a block number) |
| 8 | Indicates the read offset. The value starts from 0. |
| 9 | Indicates the read length. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 5:N | Indicates the data. The returned data may be less than or equal to the read length. |
Reference Information
Table 1 Alert Parameter
| Parameter | Parameter Data | No. (Decimal) |
|---|---|---|
| Trap Event Format Separator | data1- Get/Set Trap Event Format Separator | 1 |
| Trap Event Format Include Keyword | data1-Get/Set Trap Event Format Include Keyword String 0h-not include 1h-include | 2 |
| Trap Event Format Keyword String | data1:N-Get/Set the Combination Of Trap Events Custom Format Keywords, divided by ','. Max 50 Bytes.End by null if less than 50 Bytes. | 3 |
| Trap Destination Test | - | 5 |
| Email Destination Enable | data1-Block Selector=Destination email selector, 1 based data2-Get/Set Email Address Enable. 0h-Disable 1h-Enable | 6 |
| Email Address | data1-Block Selector=Destination email selector, 1 based data2:N-Get/Set the SMTP Destination Email Address For Receiving Events. Max 50 Bytes.End by null if less than 50 Bytes. | 7 |
| Email Description | data 1-Block Selector=Destination email selector, 1 based data2:N-Get/Set the Description Of SMTP Destination Email Address For Receiving Events. Max 50 Bytes.End by null if less than 50 Bytes. | 8 |
| Email Destination Test | Set Email Test. data1-Block Selector=email Destination selector, 1 based | 9 |
| Email Templet Topic | data1:N-Get/Set the Topic Of SMTP Email Custom Templet. Max 50 Bytes.End by null if less than 50 Bytes. | 10 |
| Email Templet From | data1:N-Get/Set the From Of SMTP Email Custom Templet. Max 50 Bytes.End by null if less than 50 Bytes. | 11 |
| Email Templet Extra Information | data1-Email Templet Topic Extra Mask Bits [7:3]=Reserved. Write as 0000 0b [2]=1-Bit in Byte 2 of command will afffect the BMC IP Address bit [1]=1-Bit in Byte 2 of command will afffect the Board Serial Number bit [0]=1-Bit in Byte 2 of command will afffect the Product Asset bit data2- Email Templet Topic Extra Get/Set Bits [7:3]=Reserved. Write as 0000 0b [2]=1-Include BMC IP Address 0-Not Include BMC IP Address [1]=1-Include Board Serial Number 0-Not Include Board Serial Number [0]=1-Include Product Asset 0-Not Include Product Asset | 12 |
| SMTP Login Mode | data1-Get/Set SMTP Server Login Mode 0h=Anonymity 1h=User Authentication | 13 |
| SMTP Login Username | data1:N-Get/Set SMTP Server Login Username Max 50 Bytes.End by null if less than 50 Bytes. | 14 |
| SMTP Login Password | data1:N-Set SMTP Server Login Password Max 50 Bytes.End by null if less than 50 Bytes. | 15 |
| Email Destination Maximum | data1-Get SMTP Email Destination Maximum | 16 |
| SNMP Trap Mode | data1-SNMP Trap Mode 0=Event Code Mode 1=OID Mode | 17 |
| SNMP Trap Source Identity | data1-SNMP Trap Source Identity 0=board SN 1=product asset tag 2=host name | 18 |
| SMTP enable TLS | data1-Enable TLS 0=disable 1=enable | 19 |
| SMTP server | data1:N-SMTP server (IPv4/IPv6/FQDN) Max 255 Bytes. End by null if less than 255 Bytes. | 20 |
| Trap Community Name Check | data1:N-Trap Community Name | 21 |
| Trap Event Format Custom | data1-Trap Mode Custom 0=default 1=Tencent custom format | 22 |
| Trap Alarm Severity | data1-Trap Alarm Severity 0=NULL 15=Informational 14=Minor 12=Major 8=Critical | 23 |
| Trap Alarm SNMP Version | data1-Trap Alarm SNMP Version 0=SNMPv1 1=SNMPv2c 3=SNMPv3 | 24=0x18 |
| Event Reporting Type | data1:8- Event Reporting Type data1: Redfish Event Reporting Type 0= OemEvent 255=set: The previous value is retained. data2: Snmp Event Reporting Type 0= OemEvent 1= SEL 255=set: The previous value is retained. data3: Smtp Event Reporting Type 0= OemEvent 1= SEL 255=set: The previous value is retained. data4: Syslog Event Reporting Type 0= OemEvent 1= SEL 255=set: The previous value is retained. data5-8: Reserved. Write as 0xFFFFFFFF | 25=0x19 |
| Trap Enable | data1-Enable Trap 0=disable 1=enable Note: 1. When Destination Selector is set to 0xff, set the status of the SNMP trap reporting function. 2. When Destination Selector is set to 1-4, set the enabling status of the specified SNMP trap receiving server. | 26=0x1A |
Command Example
Obtain the highest event severity of sensor 0.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN