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

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

87
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 12:55 PM


Question


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


Environment


N/A;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0

Answer


To see this, one would use the command netstat -atp. The below script outputs the names of the client systems imitating the SSH session, and the target systems that the PSMP system proxies the connection to. It doesn’t tie the two together.
 
echo
echo 'SSH Sources (from 'X' to PSMP)'
echo ----------------------------------
netstat -atp | grep 'PSM' | grep 'ESTABLISHED' | awk '{print $4" "$5}' | awk -F"." '{print $1" "$2}' | awk '{print $3}'
 
echo
echo 'SSH Destinations (from PSMP to 'X')'
echo ----------------------------------
netstat -atp | grep 'plink' | awk '{print $4" "$5}' | awk -F":" '{print $1" "$2}' | awk '{print $3}'
echo


NOTE: Does not work in version 12.6


Additional Information


Details

 
Q:
How can I find out how many active connections a PSMP server has?
 
A:
 
The basic command is netstat -atp and below script outputs the names of the client systems imitating the SSH session, and the target systems that the PSMP system proxies the connection to. It doesn’t tie the two together.
 
echo
echo 'SSH Sources (from 'X' to PSMP)'
echo ----------------------------------
netstat -atp | grep 'PSM' | grep 'ESTABLISHED' | awk '{print $4" "$5}' | awk -F":" '{print $1" "$2}' | awk '{print $3}'
echo
 
echo
echo 'SSH Destinations (from PSMP to 'X')'
echo ----------------------------------
netstat -atp | grep 'plink' | awk '{print $4" "$5}' | awk -F":" '{print $1" "$2}' | awk '{print $3}'
echo



Actions
  • Print
  • Copy Link

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