Get User Name
更新时间: 2025/06/26
在Gitcode上查看源码46h-获取BMC用户名(Get-User-Name)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
获取BMC用户名。
权限
UserMgnt
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | App 06h |
| CMD | 46h |
| 1 | User ID [7:6]-reserved. [5:0]-User ID to return name for. 000000b=reserved |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code |
| 2:17 | User Name String in ASCII, 16 bytes, max. Strings of fewer than 16 characters are returned with null (00h) characters filling in the remaining bytes. BMC does not check to see whether string data is 'printable' or not. Only character that BMC interprets is null (00h) |
命令样例
获取BMC用户名
请求:
ipmitool raw 0x06 0x46 0x02响应:
41 64 6d 69 6e 69 73 74 72 61 74 6f 72 00 00 00