要获取有关当前 IMAP、POP 和 HTTP 连接数、失败的登录次数、自开始时间以来的总连接数等的信息,可使用命令 counterutil -o CounterObject -i 5 -n 10。其中 CounterObject 代表计数器对象 popstat、imapstat 或 httpstat。imapstat 后缀的含义如表 27–2 中所示。popstat 和 httpstat 对象可以通过同样的格式和结构提供同样的信息。
表 27–2 counterutil imapstat 统计信息
后缀 |
说明 |
---|---|
currentStartTime |
当前 IMAP 服务器进程的开始时间。 |
lastConnectionTime |
上次接受新客户端的时间。 |
maxConnections |
IMAP 服务器处理的最大并行连接数。 |
numConnections |
由当前 IMAP 服务器提供服务的连接总数。 |
numCurrentConnections |
当前的活动连接数。 |
numFailedConnections |
由当前 IMAP 服务器提供服务的失败的连接数。 |
numFailedLogins |
由当前 IMAP 服务器提供服务的失败的登录次数。 |
numGoodLogins |
由当前 IMAP 服务器提供服务的成功的登录次数。 |