Get Session Info
更新时间: 2026/08/06
在Gitcode上查看源码Get Session Info
Change History
| openUBMC Version | Revision Date | Revised By | Description |
|---|---|---|---|
| 25.06 | 2025/06/26 | pengqiang-gs | Initial draft: add command details |
Basic Information
Function Description
Obtaining the session information
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | App 06h |
| CMD | 3Dh |
| 1 | Session 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. |
| Present if Session Index = FEh: | |
| 2 | Session Handle. 00h = reserved. |
| Present if Session Index = FFh: | |
| 2:5 | Session ID. 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. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2 | Session Handle presently assigned to active session. FFh = reserved. Return 00h if no active session associated with given session index. |
| 3 | Number 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. |
| 4 | Number 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. |
| The following parameters are returned only if there is an active session corresponding to the given session index: | |
| 5 | User ID for selected active session [7:6] - reserved. [5:0] - User ID. 000000b = reserved. |
| 6 | Operating Privilege Level [7:4] - reserved [3:0] - present privilege level that user is operating at. |
| 7 | [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 |
| The following bytes 8:18 are optionally returned if Channel Type = 802.3 LAN: | |
| 8:11 | IP Address of remote console (MS-byte first). Address that was received in the Activate Session command that activated the session. |
| 12:17 | MAC Address (MS-byte first). Address that was received in the Activate Session command that activated the session. |
| 18:19 | Port Number of remote console (LS-byte first). Port Number that was received in UDP packet that held the Activate Session command that activated the session (for IPMI v1.5 packets) or that was used for in the packet for RAKP Message 3 (for IPMI v2.0 / RMCP+ packets). |
Command Example
Obtain session information.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN