04-06-2023 01:39 AM
we are doing a review of the number of people connected via global protect at certain points in time.
Is there a way to get a report of this from the logs?
From the reports i got i seem to be only getting when people connected in so if i pick a certain point in time it does not give an accurate number of people connected.
04-06-2023 05:03 AM
Hi @KarlHalpin ,
The logs include both login and logout. So, current users can be calculated with automation on your logging server. At the time of this discussion (2015) -> https://live.paloaltonetworks.com/t5/general-topics/globalprotect-monitoring/td-p/20435 an SNMP OID for GP current users was not available. However, it does have a solution via API.
This document (2022) -> https://www.nectus5.com/how-to-monitor-number-of-palo-alto-vpn-global-protect-users/ lists an SNMP OID to retrieve connected users! That may be the easiest solution.
As a reference, this doc -> https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000Clor shows how to list users via GUI, CLI, and API. The GUI and CLI also provide a count.
So, it looks like the solution is to use SNMP or automation with syslog, API, GUI, or CLI.
04-06-2023 06:04 AM - edited 04-06-2023 06:22 AM
I personally recommend that clients keep a script running that can record the number of active users. The basis of that is simply '
https://<firewall>/api/?type=op&cmd=<show><global-protect-gateway><statistics></statistics></global-protect-gateway></show>&key=<key> # Replace <firewall> with your own firewall FQDN/IP # # Replace <key> with your API key #
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!