--勉励自己努力以钉子的“挤”劲和“钻”劲提升自己
 :: Blog List ::
钉子 发表于 2014-6-26 10:35:30

1.通过以下命令查询用户连接的数量和CAS服务器

Get-LogonStatistics -Server  "mailbox Server" | select username, clientname, clientversion, logontime, lastaccesstime | Export-CSV C:\CAS.csv
Get-LogonStatistics -Server "mailbox Server" | where {$_.clientname -eq "cas Server"}| ft

2.查询当前访问协议的连接数:

a.基于CAS上的性能监视器,增加相应的计数器实现:

RPC连接数(最近 2 分钟之内进行过某些活动的唯一用户数):
MSExchange RpcClientAccess\Active User Count

RPC连接数(显示所维护的客户端连接总数)
MSExchange RpcClientAccess\Connection Count
OWA登录用户数:
\MSExchange OWA\Current Unique Users

Outlook anywhere 连接CAS数:
RPC/HTTP Proxy\Current Number of Incoming RPC over HTTP Connections

Outlook anywhere 连接MBS数:
RPC/HTTP Proxy\Current Number of Unique Users

Exchange ActiveSync连接CAS数:
MSExchange ActiveSync\Requests/sec

Pop3连接数:
MSExchangePop3\Connections Current"

Imap4连接数:
MSExchangeImap4\Connections Current

b.基于以上的计数器,直接使用Get-Counter查询,如:

Get-Counter “MSExchange RpcClientAccess\Active User Count”

Get-ClientAccessServer | Get-Counter MSExchange RpcClientAccess\Active User Count

c.还可以参考mike_pfeiffer的文章,写一个脚本定期查询:

http://www.mikepfeiffer.net/2011/04/determine-the-number-of-active-users-on-exchange-2010-client-access-servers-with-powershell/

【参考资料】
http://www.mikepfeiffer.net/2011/04/determine-the-number-of-active-users-on-exchange-2010-client-access-servers-with-powershell/

http://technet.microsoft.com/zh-CN/library/ff367877(v=exchg.141).aspx

http://oxfordsbsguy.com/2013/06/20/powershell-identify-the-number-of-users-connected-to-a-exchange-2010-cas-server/

发表评论:

    昵称:
    密码: (游客无须输入密码)
    主页:
    标题:
Best view with 1024 x 768 pixel & IE 6.0.
About Me
Archives Categories
Replies List
My FriendLinks
Blog Info

Powered by Oblog.