First, the basic information
1. The Windows server performance counter data is passed. NET Diagnostics.performancecounter class to provide data;
2. Diagnostics.performancecounter class can be CategoryName, CounterName, instancename and other parameters to determine
The performance counters that need to be obtained, these names can be obtained directly in the performance counters;
3. You can also use MachineName to specify the remote server name to remotely obtain data from other server counters;
4. This performance includes not only common CPU, memory, disk and other counter information, but also the number of queues of Exchange server or domain controller
LDAP Search time, or LDAP Read, in other words, through the data that the performance counter can get, we can
Parameters to achieve our custom requirements, such as simply collecting data, or when the mailbox server queue reaches 500 to the administrator
Send mail and so on;
5. The data can be continuously collected or monitored by a circular control system.
Second, the script body
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/80/wKioL1W4_kLA-875AAK__u54-4o523.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiol1w4_kla-875aak__u54-4o523.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/83/wKiom1W4_FPQhCsnAAF2hywxfP0452.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiom1w4_fpqhcsnaaf2hywxfp0452.jpg "/>
Three
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/80/wKioL1W4_pqgr0XwAAKYyBjMxVY630.jpg "title=" 3.jpg " alt= "Wkiol1w4_pqgr0xwaakyybjmxvy630.jpg"/>
Iv. Help Information
Help Information *************************************
Edit by Anson @2015/07/29
qq:2022215673
Mail:[email protected]
Script Download: http://down.51cto.com/data/2074538
*********************************************************************************
This article is from the "Essence of the" blog, please be sure to keep this source http://simy88.blog.51cto.com/7370552/1679850
PowerShell Get server basic information "performance counters"