Microsoft Logman.exe Utility – creates and manages event trace session and performance logs and supports many functions of performance monitor from the command line

mswindows_logo.jpg   The Microsoft Logman.exe Utility can be used to create and manage Event Trace Session and Performance logs.  Many functions of Performance Monitor are supported and can be invoked using this command line utility

PerfCounterName.cfg
…
\Terminal Services\Active Sessions
\Terminal Services\Inactive Sessions
\Terminal Services\Total Sessions
\PhysicalDisk(_Total)\% Disk Time
\PhysicalDisk(_Total)\Avg. Disk Queue Length
\PhysicalDisk(_Total)\Disk Reads/sec
\PhysicalDisk(_Total)\Disk Writes/sec
\PhysicalDisk(_Total)\Avg. Disk sec/Transfer
\Processor(_Total)\% Processor Time
\Memory\Available Mbytes
\Network Interface(*)\Bytes Total/sec
…

logman create counter <PerfCounterName> -f csv -cf <Path>\<PerfCounterName>.cfg -o <Path>\<PerfCounterName>.csv -si 60 -rf 24:00:00 -s <ServerName>

logman start <PerfCounterName>

Leave a Reply

You must be logged in to post a comment.