How the PSM generates the live session list
79
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:04 PM
Question
How the PSM generates the live session list
Environment
N/A
Answer
The PSM service is responsible for creating and updating a list of all the live sessions.
For each PSM service there is an object in the Vault under a safe called PSMLiveSessions, the object name contains the PSMServerID, which makes the name unique for each PSM and allows each PSM instance to maintain its own object. The object name is in the following format: "<PSMServerID>.PSMLiveSessions".
Note: The PSMServerID is configured under the basic_psm.ini configuration file, and must be unique for each PSM.
On each object there are 5 File Categories, each file category can hold a list of pairs of values separated by a comma (',').
The File Categories names are in the following format: _LiveSessions_# (_LiveSessions_1, _LiveSessions_2, ... , _LiveSessions_5).
Note: The division into 5 File Categories is necessary because of length restriction on a File Category value.
Each pair of values represents a live session and points to the session file that corresponds to that session, the values are the SafeID and the FileID of the session.
When a PSM session is established or terminated, the PSM service updates (add/remove) one of the file categories with <SafeID>, <FileID>.
And when PVWA queries the list:
When running a Live Sessions query in the PVWA, the PVWA reads all the file categories of each object under the PSMLiveSessions safe. PVWA also remembers the PSMServerID of the PSM in which each session is running (according to the object name).
Subsequently, the PVWA gets all the sessions information from the session files and creates a table where each row represents a session.
The table contains (among other things) the UUID of each session and the PSMServerID of the PSM server in which the session is running.