How to import,start,stop Perfmon Data collector set from command line

Jacques DALBERA's IT world

 It’s possible to export Windows Performance Monitor Data Collector Sets from perfmon.exe and then reopen the template on a different machine.

If you have many performance data collector templates or many machines or both, you need an automated way to import the data collector templates.

An easier way is to use logman.exe to import the performance monitor data collector set.

Here’s the syntax: logman import -name “MyCustomMonitorName” -xml “MyCustomMonitorTemplate.xml” 

Create a batch file or Powershell script with that command for each data collector set and you can deploy multiple performance monitors to multiple machines quickly.

Then

to start the data collector set from the command line: logman start “MyCustomMonitorName”

and to stop the data collector set: logman stop “MyCustomMonitorName”

Normally, if you have checked the box: Enable Data Management and Report generation (on DataManager tab of the DCS), you can access the REPORT.HTML report located by default on…

View original post 16 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s