Checking and exporting a gateway's "connections" table
From Tech-Wiki
There are number of ways to check the number of active connection through a gateway.
fw ctl pstat | grep "Concurrent Connections:"
This value can be validiated with the following command:
fw tab -t connections -f -u | grep Rule: | wc -l ** This can take a short while to calculate **
If required the state table can be exported to a file for offline analysys:
fw tab -t connections -f -u | grep Rule: >> <PATH TO FILE>