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

16h-查询告警上报参数(Get-Alert-Configuration)

修订记录

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息

功能说明

查询告警上报参数。

权限

命令信息

请求信息

字节顺序域取值说明
NetFn30h
CMD93h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4Sub command,子命令=16h
5Destination Selector
取值:1~5,非服务器配置填0xff
6Alert Parameter,见 表1
7Block Selector (00h if parameter does not require a block number)
8Read Offset,读取的数据偏移,从0开始。
9Length,读取长度

响应信息

字节顺序域取值说明
1Completion Code
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
5:NData,实际返回的数据可能小于等于Read length。

命令样例

获取编号0的传感器的最高事件级别

请求:

ipmicmd -k "0f 00 MM NN" smi 0

响应:

0f MM NN

附表1 Alert Parameter

ParameterParameter Data#(10进制)
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时,保持上一次值,不做修改
data2: Snmp Event Reporting Type
0= OemEvent
1= SEL
255=set时,保持上一次值,不做修改
data3: Smtp Event Reporting Type
0= OemEvent
1= SEL
255=set时,保持上一次值,不做修改
data4: Syslog Event Reporting Type
0= OemEvent
1= SEL
255=set时,保持上一次值,不做修改
data5-8: Reserved. Write as 0xFFFFFFFF
25=0x19
Trap Enabledata1-Enable Trap
0=disable
1=enable
说明:
1、当Destination Selector为0xff时,设置snmp trap上报功能使能状态;
2、当Destination Selector为1-4时,设置指定snmp trap接收服务器使能状态;
26=0x1A

返回到索引