Friday, August 26, 2011

using logman to start monitoring counters in perfmon

Create a batch file



logman start test

create a schedule task to run that batch file at system start up


http://technet.microsoft.com/en-us/library/cc755366(WS.10).aspx

To start daily collections with sample intervals, account names and passwords, type:

Logman start daily_perf_log -s \\%computer_name% -u admin "adminpassword"

To start manual data collections, type:

Logman start daily_perf_log

To stop data collections, type:

Logman stop daily_perf_log

To delete data collections, type:

Logman delete daily_perf_log

To display the status of collection queries, type the following commands:

Performance log

http://technet.microsoft.com/en-us/library/cc737657(WS.10).aspx

Monitoring performance from the command line
Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Monitoring performance from the command line

In addition to using the Performance graphical interface, you can use the following command line utilities:

Logman manages and schedules performance counter and event trace log collections on local and remote systems.

Perfmon allows you to open a Performance console configured with the System Monitor ActiveX control and Performance Logs and Alerts Service.

Relog extracts performance counters from performance counter logs into other formats, such as text file (tab delimited), text file (comma delimited), binary-BIN, or SQL.

Tracerpt processes event trace logs or real-time data from instrumented event trace providers and allows you to generate trace analysis reports and CSV (comma-delimited) files for the events generated.

Typeperf writes performance counter data to the command window, or to a supported log file format.

Lodctr registers new Performance counter names and Explain text for a service or device driver, and saves and restores counter settings and Explain text.

Unlodctr removes Performance counter names and Explain text for a service or device driver from the system registry.

For more information about incorporating these Performance commands into your Windows Management Instrumentation (WMI), see "Part One: Operating System Performance" in the System Performance and Troubleshooting Guide, available at the Microsoft Windows Resource Kits Web site.

For information about other command-line utilities, see Command-line reference. For more information about manageability, see Management Strategies and Tools.

Monday, August 15, 2011