Reset Search
 

 

Article

13548 - How to determine the number of ephemeral ports in use on virtual traffic manager (vTM)?

« Go Back

Information

 
Last Modified Date12/8/2017 12:04 AM
Synopsis
This article provides information how to determine the number of ephemeral ports in use on the vTM.
Problem or Goal
Cause
Solution
We can discover how many ephemeral ports are in use for all IP pairs on the device with the following steps. 
  1. Collect a TSR from the device(s) in quest.  A TSR can be collected through the web UI > Diagnose > Technical Support > Manage Technical support reports > Generate TSR.   Or, the same can be accomplished with the command line using a command similar to the following:  $ZEUSHOME/zxtm/bin/support-report --all-logs /tmp/node_date_time
  2. Attach the resulting .tgz file to the case. 
  3. Navigate to the "support" directory within the uncompressed TSR.
  4. Run the following command to discover the total number of ephemeral ports for each IP pair. 
$ cat sysctl.txt | grep net.ipv4.ip_local_port_range
net.ipv4.ip_local_port_range = 1024     65535
Note: The output is a range.  So, the ephemeral ports available are 1024 - 65535 or 64,511 total. 
  1. Run the following command to determine the number of ephemeral ports in use for each IP pair communicating through the vTM: 
$ cat networking.txt | tr ':' ' ' | awk '$1 ~ /tcp/ && $2 ~ /^(ESTAB|FIN|TIME)/ 
{print $5" "$7":"$8;}' | sort | uniq -c | sort -rn | head -20
  35144 172.31.3.3 172.31.10.213:https
  24325 172.31.3.3 172.31.10.211:https
  24013 172.31.3.3 172.31.10.212:https
    228 172.31.3.3 172.31.10.140:https
    220 172.31.3.3 172.31.10.142:https
    208 172.31.3.3 172.31.10.141:https
Note: The column on the left is the total number of ephemeral ports in use for each row of IP pairs. 
Related Links
Attachment 1 
Created ByCode Deployment

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255