The command sftp stat [-z]
reports the values of three SFTP connection counters: the current number of SFTP connections, the highest number of simultaneous SFTP connections, and the total number of SFTP connections for all the connections.
The "-z" option resets the simultaneous connection and total connection counters to zero.
sftp stat
Current connections: 2
Maximum concurrent connections: 2
Total connections: 9
sftp stat -z
Current connections: 2
Maximum concurrent connections: 2
Total connections: 9
SFTP connection counters set to zero
vfiler run vfiler0 sftp stat