当前SNMP Trap上报中默认的主机标识是单板序列号

目前看装备定制中没有对该项的定制,有无ipmi命令可以修改
当前SNMP Trap上报中默认的主机标识是单板序列号

目前看装备定制中没有对该项的定制,有无ipmi命令可以修改
参考如下命令:修改为testBMC
raw 0x30 0x93 0xdb 0x07 0x00 0x05 0x01 0x00 0x00 0x07 0x74 0x65 0x73 0x74 0x42 0x4d 0x43
这是修改主机名吧,我需要的是定制trap上报主机标识为主机名
试试:raw 0x30 0x93 0xdb 0x07 0x00 0x15 0x01 0x12 0x00 0x00 0x01 0x02
最后一个byte 0x02含义:0x00(单板序列号),0x01(产片资产标签),0x02(主机名)
该命令返回 Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x93 rsp=0xc9): Parameter out of range
目前找到ipmi命令定义如下:
"SetTrapSourceIdentity": {
"netfn": "0x30",
"cmd": "0x93",
"priority": "Default",
"role": "Operator",
"privilege": [
"BasicSetting"
],
"sysLockedPolicy": "Forbidden",
"req": [
{
"data": "ManufactureId",
"baseType": "U32",
"len": "3B",
"customizedRule": "Manufacturer"
},
{
"data": "SubCmd",
"baseType": "U8",
"len": "1B",
"value": "0x15"
},
{
"data": "DestinationSelector",
"baseType": "U8",
"len": "1B"
},
{
"data": "AlertParameter",
"baseType": "U8",
"len": "1B",
"value": "0x12"
},
{
"data": "EndOfList",
"baseType": "U8",
"len": "1b"
},
{
"data": "Reserved",
"baseType": "U8",
"len": "7b"
},
{
"data": "Offset",
"baseType": "U8",
"len": "1B"
},
{
"data": "Length",
"baseType": "U8",
"len": "1B"
},
{
"data": "SourceIdentity",
"baseType": "U8",
"len": "1B"
}
],
不太确定 DestinationSelector、EndOfList、Reserved、Offset、Length、SourceIdentity写啥
使用 raw 0x30 0x93 0xdb 0x07 0x00 0x15 0x01 0x12 0x00 0x00 0x00 0x01 0x02
返回:
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x93 rsp=0xc7): Request data length invalid
已确认命令:
raw 0x30 0x93 0xdb 0x07 0x00 0x15 0xff 0x12 0x00 0x00 0x01 0x02