PowerShell Get server basic information "performance counters"

Source: Internet
Author: User
Tags ldap

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/1679851

PowerShell Get server basic information "performance counters"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.