Get Alert Configuration
更新时间: 2026/08/06
在Gitcode上查看源码

Get Alert Configuration

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

This command is used to query alert reporting parameters.

Privilege

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1:3Manufacturer 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.
4Sub command: subcommand = 16h
5Destination Selector
The value ranges from 1 to 5. For a non-server configuration, set this parameter to 0xff.
6Alert parameter. For details, see Table 1.
7Block Selector (00h if parameter does not require a block number)
8Indicates the read offset. The value starts from 0.
9Indicates the read length.

Response Information

ByteData Field
1Completion Code
2:4Manufacturer 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:NIndicates the data. The returned data may be less than or equal to the read length.

Reference Information

Table 1 Alert Parameter

ParameterParameter DataNo. (Decimal)
Trap Event Format Separatordata1- Get/Set Trap Event Format Separator1
Trap Event Format Include Keyworddata1-Get/Set Trap Event Format Include Keyword String
0h-not include
1h-include
2
Trap Event Format Keyword Stringdata1: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 Enabledata1-Block Selector=Destination email selector, 1 based
data2-Get/Set Email Address Enable.
0h-Disable
1h-Enable
6
Email Addressdata1-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 Descriptiondata 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 TestSet Email Test.
data1-Block Selector=email Destination selector, 1 based
9
Email Templet Topicdata1:N-Get/Set the Topic Of SMTP Email Custom Templet.
Max 50 Bytes.End by null if less than 50 Bytes.
10
Email Templet Fromdata1: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 Informationdata1-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 Modedata1-Get/Set SMTP Server Login Mode
0h=Anonymity
1h=User Authentication
13
SMTP Login Usernamedata1:N-Get/Set SMTP Server Login Username
Max 50 Bytes.End by null if less than 50 Bytes.
14
SMTP Login Passworddata1:N-Set SMTP Server Login Password
Max 50 Bytes.End by null if less than 50 Bytes.
15
Email Destination Maximumdata1-Get SMTP Email Destination Maximum16
SNMP Trap Modedata1-SNMP Trap Mode
0=Event Code Mode
1=OID Mode
17
SNMP Trap Source Identitydata1-SNMP Trap Source Identity
0=board SN
1=product asset tag
2=host name
18
SMTP enable TLSdata1-Enable TLS
0=disable
1=enable
19
SMTP serverdata1:N-SMTP server (IPv4/IPv6/FQDN)
Max 255 Bytes. End by null if less than 255 Bytes.
20
Trap Community Name Checkdata1:N-Trap Community Name21
Trap Event Format Customdata1-Trap Mode Custom
0=default
1=Tencent custom format
22
Trap Alarm Severitydata1-Trap Alarm Severity
0=NULL
15=Informational
14=Minor
12=Major
8=Critical
23
Trap Alarm SNMP Versiondata1-Trap Alarm SNMP Version
0=SNMPv1
1=SNMPv2c
3=SNMPv3
24=0x18
Event Reporting Typedata1: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 Enabledata1-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 0

Response:

text
0f MM NN

Back to Index