ftp stat [ -z ]
If issued without any arguments, the command reports the cumulative values of FTP connection counters: the current number of connections, the highest number of simultaneous connections, and the total number of connections for all the connections established over Native FTP, Implicit FTPS or Explicit FTPS and over both IPv4 and IPv6.
The -i option reports the counters after filtering connections on the basis of the IP protocol used. When the -i option is used with "ipv4" as the argument, counters corresponding to the connections over the IPv4 protocol are displayed. When the -i option is used with "ipv6" as the argument, counters corresponding to the connections over the IPv6 protocol are displayed.
The -p option reports the counters after filtering connections on the basis of the FTP flavor used. When the -p option is used with "native" as the argument, counters corresponding to the Native FTP connections are displayed. When the -p option is used with "implicit" as the argument counters corresponding to Implicit FTPS are displayed. Similarly the argument "explicit" displays counters corresponding to Explicit FTPS connections.
The -z option resets the simultaneous connection and total connection counters to zero.
Here are some examples using ftp stat: ftp stat Current connections: 6 (native 2, implicit 2, explicit 2) Maximum concurrent connections: 10 Total connections: 21 ftp stat -i ipv4 Current IPv4 connections: 3 Maximum IPv4 concurrent connections: 6 Total IPv4 connections: 15 ftp stat -i ipv6 Current IPv6 connections: 3 Maximum IPv6 concurrent connections: 4 Total IPv6 connections: 6 ftp stat -p native Current native connections: 2 Maximum native concurrent connections: 6 Total native connections: 12 ftp stat -p explicit Current explicit connections: 2 Maximum explicit concurrent connections: 2 Total explicit connections: 4 ftp stat -p implicit Current implicit connections: 2 Maximum implicit concurrent connections:3 Total implicit connections: 5 ftp stat -i ipv4 -p implicit Current implicit IPv4 connections: 1 Maximum implicit IPv4 concurrent connections: 2 Total implicit IPv4 connections: 3 ftp stat -z Current connections: 6 (native 2, implicit 2, explicit 2) Maximum concurrent connections: 10 Total connections: 21 FTP connection counters set to zero ftp stat Current connections: 6 (native 2, implicit 2, explicit 2) Maximum concurrent connections: 0 Total connections: 0 SEE ALSO na_ftpd(1), 10 Oct 2003 na_ftp(1)