Get Session Info
更新时间: 2026/08/06
在Gitcode上查看源码

Get Session Info

Change History

openUBMC VersionRevision DateRevised ByDescription
25.062025/06/26pengqiang-gsInitial draft: add command details

Basic Information

Function Description

Obtaining the session information

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFnApp 06h
CMD3Dh
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.
Present if Session Index = FEh:
2Session Handle. 00h = reserved.
Present if Session Index = FFh:
2:5Session 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

ByteData Field
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.
The following parameters are returned only if there is an active session corresponding to the given session index:
5User ID for selected active session
[7:6] - reserved.
[5:0] - User ID. 000000b = reserved.
6Operating 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:11IP Address of remote console (MS-byte first). Address that was received in the Activate Session command that activated the session.
12:17MAC Address (MS-byte first). Address that was received in the Activate Session command that activated the session.
18:19Port 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 0

Response:

text
0f MM NN

Back to Index