Get Session Info 命令详情
更新时间:2025/06/26
在Gitcode上查看源码

修订记录

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

基本信息

功能说明

标准命令,获取当前会话信息。 TThis command is used to get information regarding which users presently have active sessions, and, when available, addressing information for the party that has established the session.

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
1Session Index: This value is used to select entries in a logical ‘sessions’ table maintained by the management controller. Info for all active sessions can be retrieved by incrementing the session index from 1 to N, where N is the number of entries in the Active Sessions table.
00h = Return info for active session associated with session this command was received over.
N = get info for Nth active session
FEh = Look up session info according to Session Handle passed in this request.
FFh = Look up session info according to Session ID passed in this request.
2[:5]Session Handle.
Present if Session Index = FEh

ID of session to look up session information for. For IPMI v2.0/RMCP+ this is the Session ID value that was generated by the BMC, not the ID from the remote console.

响应信息

字节顺序域取值说明
1Completion Code
2Session Handle presently assigned to active session. FFh = reserved. Return 00h if no active session associated with given session index.
3Number of possible active sessions. This value reflects the number of possible entries (slots) in the sessions table.
[7:6] - reserved
[5:0] - session slot count. 1-based
4Number of currently active sessions on all channels on this controller.
[7:6] - reserved
[5:0] - active session count. 1-based. 0 = no currently active sessions.
5Given session index limited.

User ID for selected active session
[7:6] - reserved.
[5:0] - User ID. 000000b = reserved.
6Given session index limited.

Operating Privilege Level
[7:4] - reserved
[3:0] - present privilege level that user is operating at
7Given session index limited.

[7:4] - Session protocol auxiliary data
 For Channel Type = 802.3 LAN:
 0h = IPMI v1.5
 1h = IPMI v2.0/RMCP+
Channel that session was activated over.
[3:0] - channel number
8:N根据会话通道的不同返回不同的值

命令样例

样例1:获取当前会话信息

  • 请求:
  • 响应:

返回到索引