OEM Account
更新时间: 2025/06/26
在Gitcode上查看源码7Ch-定制OEM用户(OEM-Account)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
定制OEM用户。
该功能只有字节跳动定制化时需要使用。
权限
UserMgmt
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| 4 | Sub command,子命令=7CH |
| 5 | Function,功能号见表1 |
| 6 | OEMUser Id,内部保存时Id为该值添加偏移量100 [7:4]-reserved. [3:0]-User ID |
| 7:22 | 用户名的ASCII编码,长度为16字节,最大长度为16个字符。 长度少于16个字符的字符串将以空(00h)字符结尾,并且会在末尾进行0填充至16字节。 |
| 23 | 用户权限 [7:4]-reserved [3:0]-User Privilege Limit. (Determines the maximum privilege level that the user is allowed to switch to on the specified channel.) 0h=reserved 1h=Callback 2h=User 3h=Operator 4h=Administrator 5h=OEM Proprietary Fh=NO ACCESS |
| 24 | 登录接口使能 bit0-Web: 0 disabled; 1 enabled bit1-SNMP: 0 disabled; 1 enabled bit2-IPMI: 0 disabled; 1 enabled bit3-SSH: 0 disabled; 1 enabled bit4-SFTP: 0 disabled; 1 enabled bit6-Local: 0 disabled; 1 enabled bit7-Redfish: 0 disabled; 1 enabled |
| 25 | 首次登陆策略 01h–提示修改 02h–强制修改 |
| 26 | PasswordType 密码为明文或者密文 01h–明文 02h–密文,linux密码标准格式 |
| 27 | [7:1]:reserved [0]:级联标志 0=是最后一帧数据 1=后面还有数据 |
| 28:29 | Write Offset. 写入的数据偏移,从0开始,当数据较长需要多次写入时,一定要从头到尾按顺序写入,不能乱序。 |
| 30 | Length 写入长度 |
| 31+N | Password 密码,可以传明文与密文 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
附表1
|功能号|功能| |01h|添加OEM用户| |02h|校验OEM用户|
命令样例
新建一个id为101,名字为Administrator1,首次登陆为提示修改,密码为(密文)$1$ftdliuca$weqrlweqrWqSAD的管理员OEM用户
请求:
ipmitool raw 0x30 0x93 0xDB 0x07 0x01 0x00 0x7c 0x01 0x41 0x64 0x6D 0x69 0x6E 0x69 0x73 0x74 0x72 0x61 0x74 0x6F 0x72 0x31 0x00 0x00 0x04 0x08 0x01 0x02 0x00 0x00 0x00 0x1A 0x24 0x31 0x24 0x66 0x74 0x64 0x6C 0x69 0x75 0x63 0x61 0x24 0x77 0x65 0x71 0x72 0x6C 0x77 0x65 0x71 0x72 0x57 0x71 0x53 0x41 0x44响应:
db 07 00