Building Your Own Performance Warehouse
Last edited January 8, 2009
More by Wrong Guy »
Sections:
Perfmon

 
 Use relog to log Performance Monitor counter log files into a SQL Server database or to resample a file.
Labels: perfmon, performance monitoring, batch scripts, command prompt, command line
This is example contents of a performance log config file.

You can set the log to run using command like:

logman -config FILE

[counter]
windows-monitor

[-v]
mmddhhmm

[-si]
00:00:30

[-f]
csv

[-c]
\Processor(_Total)\% Processor Time
\Memory\Available Bytes
\Memory\Cache Bytes
\Memory\Committed Bytes
\Memory\Pages/sec
\Memory\Page Faults/sec
\Memory\Pool Nonpaged Bytes
\LogicalDisk(*)\% Free Space
\LogicalDisk(*)\% Disk Time
\LogicalDisk(_Total)\Avg. Disk Bytes/Transfer
\LogicalDisk(_Total)\Avg. Disk Queue Length
\Network Interface(*)\Bytes Total/sec
\Paging File(_Total)\% Usage
\System\Context Switches/sec
\System\Processor Queue Length

[-o]
c:\perflogs\windows-monitor
Labels: logman, performance monitoring, perfmon
Logman creates and manages Event Trace Session and Performance logs and supports many functions of Performance Monitor from the command line.
The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.