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:\scvmmdebuglog\vmmtrace.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:\SCVMMDEBUGLOG\vmmtrace_000001.etl

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

PS > dir C:\SCVMMDEBUGLOG

    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

ETL Trace SCVMM

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

ETL Trace SCVMM - Converting

Bulent Tolu

Bulent Tolu

Bulent is an IT professional with Master's in MIS and 10-years of experience in broad range of Information Technologies. He is exposed to engineering/architecting, implementation/integration, and administration of various high-available IT systems and infrastructure. He has a passion to continually research, test and evaluate new technologies and follow industry best practices to secure and optimize IT systems. Currently, he lives in Istanbul and works as a Sr. Cloud Computing and Virtualization Consultant. He has a diverse knowledge and interest in Virtualization and Cloud Computing.

:: VMware Certified Advanced Professional 5
Data Center Administration (VCAP5-DCA)
:: VTSP (VMware Certified Technical Sales Professional 5)
:: MCSE(Microsoft Certified Solutions Expert) – Private Cloud 2012
:: CCEE(Citrix Certified Enterprise Engineer)
Bulent ToluBulent ToluBulent Tolu Bulent Tolu

Bulent Tolu

Leave a Reply