How can I find out how many active connections a PSM server has?

How can I find out how many active connections a PSM server has?

85
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:11 PM


Objective


How can I find out how many active connections a PSM server has?
 


Environment


11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0;14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM)

Procedure


== Before V12.1 of PSM ==
There is a Microsoft command that will display the RDP session status on a PSM server. The command output can be dumped to a file and 3rd party reporting tools can then scrape the output file so that alerting can be built around concurrent connections.
 
The basic command is query session and should be run from the command prompt. To obtain just a count of the active RDP sessions and output to a file named rdp_count.txt, run the following:
query session | find /i "Active" | find /i "rdp-tcp" /c > rdp_count.txt
 
This can be built into a batch file that is run by Windows Task schedule on a regular interval, and the output file can be scraped by 3rd party monitoring tools.
 
== since V12.1 of PSM ==
Just enable debug for PSM in PVWA.
After that, PSMTrace.log will have the following entries to inform of the concurrent sessions:
  • PSMSR310I Number of active sessions after removing a session is 72
  • PSMSR309I Number of active sessions after adding new session is 22


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001ZdHCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail