Get Alert Configuration
更新时间: 2025/06/26
在Gitcode上查看源码16h-查询告警上报参数(Get-Alert-Configuration)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
查询告警上报参数。
权限
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 4 | Sub command,子命令=16h |
| 5 | Destination Selector 取值:1~5,非服务器配置填0xff |
| 6 | Alert Parameter,见 表1 |
| 7 | Block Selector (00h if parameter does not require a block number) |
| 8 | Read Offset,读取的数据偏移,从0开始。 |
| 9 | Length,读取长度 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 5:N | Data,实际返回的数据可能小于等于Read length。 |
命令样例
获取编号0的传感器的最高事件级别
请求:
ipmicmd -k "0f 00 MM NN" smi 0响应:
0f MM NN附表1 Alert Parameter
| Parameter | Parameter Data | #(10进制) |
|---|---|---|
| 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时,保持上一次值,不做修改 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 Enable | data1-Enable Trap 0=disable 1=enable 说明: 1、当Destination Selector为0xff时,设置snmp trap上报功能使能状态; 2、当Destination Selector为1-4时,设置指定snmp trap接收服务器使能状态; | 26=0x1A |