We can discover how many ephemeral ports are in use for all IP pairs on the device with the following steps.
- 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
- Attach the resulting .tgz file to the case.
- Navigate to the "support" directory within the uncompressed TSR.
- 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.
- 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.