Debug Logging in SCVMM 2012 SP1

Debug Logging in SCVMM 2012 SP1

Debug Logging in SCVMM 2012 SP1To troubleshoot VMM issues, a debug tracing can be enabled and captured in SCVMM 2012 SP1 with the help of logman and SCVMM providers. The ETL file can easily be converted to txt file with netsh and can provide useful information on the issue being experienced. Lets go over the steps to enable debug tracing.

Logman is a builtin command line utility used to create and manage traces and performance logs (perfmon).

To Create a trace

PS > logman create trace SCVMM -o C:scvmmdebuglogvmmtrace.etl -cnf 00:30:00 -p Microsoft-VirtualMachineManager-Debug -nb 10 250 -bs 16 -max 512 -a
The command completed successfully.

List Existing Traces:

PS > logman

Data Collector Set                      Type                          Status
SCVMM                                   Trace                         Stopped
Server Manager Performance Monitor      Counter                       Stopped

To Start the trace we setup

PS > logman start scvmm
The command completed successfully.

Now, replicate the issue, and then stop the trace

PS > logman stop scvmm
The command completed successfully.

To Convert the etl file to txt file:

PS > netsh trace convert C:SCVMMDEBUGLOGvmmtrace_000001.etl

Input file:  C:SCVMMDEBUGLOGvmmtrace_000001.etl
Dump file:   C:SCVMMDEBUGLOGvmmtrace_000001.txt
Dump format: TXT
Report file: –
Generating dump … done


    Directory: C:SCVMMDEBUGLOG

Mode                LastWriteTime     Length Name
—-                ————-     —— —-
-a—         2/27/2013   4:19 PM     589824 vmmtrace_000001.etl
-a—         2/27/2013   4:22 PM     713460 vmmtrace_000001.txt


Sample trace file (I created a snopwhot of a VM while the trace was running)

ETL Trace SCVMM - Converting

Bulent Tolu
Latest posts by Bulent Tolu (see all)
Translate ยป