SCOM ETL Trace Gathering Script

Posted by : on

powershell   operationsManager   troubleshooting   projects

:book: Introduction

This Tool will assist you in gathering ETL Traces. You have the options of selecting specific Tracing to gather with this script.

The script will perform the following, in this order:

  1. Stops any existing ETL Traces
    • Optional: Stops the SCOM Services
  2. Starts the ETL Trace
    • Optional: Starts the SCOM Services back up
  3. Script will wait for issue to occur
    • Default: Pauses Script, waits until you press Enter
    • Optional: Sleeps for x Seconds (-SleepSeconds 10)
    • Optional: Script will loop until an Event ID is detected (-DetectOpsMgrEventID)
    • Optional: Script can sleep for any amount of seconds after an Event is detected. (-SleepAfterEventDetection)
  4. Stops ETL Trace
  5. Optional: Script can attempt to Format the ETL Trace (-FormatTrace)
  6. Zips Up Output and Opens Explorer Window for Viewing File

:arrow_down: How to get it

You can get a copy of the script here:
Start-ScomETLTrace.ps1 :arrow_left: Direct Download Link
or
Personal File Server - Start-ScomETLTrace.ps1 :arrow_left: Alternative Download Link
or
Personal File Server - Start-ScomETLTrace.txt :arrow_left: Text Format Alternative Download Link

:page_with_curl: How to use it

Open Powershell Prompt as Administrator:

Examples

All Available Commands
.\Start-ScomETLTrace.ps1 -GetAdvisor -GetApmConnector -GetBID -GetConfigService -GetDAS -GetFailover -GetManaged -GetNASM -GetNative -GetScript -GetUI -VerboseTrace -DebugTrace -NetworkTrace -SleepSeconds -RestartSCOMServices -DetectOpsMgrEventID
Get Verbose Native ETL Trace
.\Start-ScomETLTrace.ps1 -GetNative -VerboseTrace
Get Verbose Native ETL Trace and Format the trace
.\Start-ScomETLTrace.ps1 -GetNative -VerboseTrace -FormatTrace
Gather Verbose ETL Trace and detect for 1210 Event ID (Sleep for 30 Seconds between checks)
.\Start-ScomETLTrace.ps1 -VerboseTrace -DetectOpsMgrEventID 1210 -SleepSeconds 30
Gather Verbose ETL Trace and detect for 1210 Event ID (Sleep for 30 Seconds between checks) and sleep for 10 seconds after finding the Event ID
.\Start-ScomETLTrace.ps1 -VerboseTrace -DetectOpsMgrEventID 1210 -SleepSeconds 30 -SleepAfterEventDetection 10
Restart SCOM Services after starting an ETL Trace. Sleep for 2 Minutes and stop the Trace Automatically
.\Start-ScomETLTrace.ps1 -Sleep 120 -RestartSCOMServices

Get All ETL Traces

Get Verbose Tracing for all the Default Tracing Available (just like running this: -GetAdvisor -GetApmConnector -GetBID -GetConfigService -GetDAS -GetFailover -GetManaged -GetNASM -GetNative -GetScript -GetUI)
.\Start-ScomETLTrace.ps1 -VerboseTrace
Get Debug Tracing for all the Default Tracing Available (just like running this: -GetAdvisor -GetApmConnector -GetBID -GetConfigService -GetDAS -GetFailover -GetManaged -GetNASM -GetNative -GetScript -GetUI)
.\Start-ScomETLTrace.ps1 -DebugTrace
Get Verbose Tracing for all the Default Tracing Available and Network Tracing (just like running this: -GetAdvisor -GetApmConnector -GetBID -GetConfigService -GetDAS -GetFailover -GetManaged -GetNASM -GetNative -GetScript -GetUI)
.\Start-ScomETLTrace.ps1 -VerboseTrace -NetworkTrace
.\Start-ScomETLTrace.ps1 -VerboseTrace -OpsMgrModuleLogging

Leave some feedback if this helped you! :v:

Page Views


Share on:
About Blake Drumm
Blake Drumm

I like to collaborate and work on projects. My skills with Powershell allow me to quickly develop automated solutions to suit my customers, and my own needs.

Email :

Website :

About Blake Drumm

My name is Blake Drumm, I am working on the Azure Monitoring Enterprise Team with Microsoft. Currently working to update public documentation for System Center products and write troubleshooting guides to assist with fixing issues that may arise while using the products. I like to blog on Operations Manager and Azure Automation products, keep checking back for new posts. My goal is to post atleast once a month if possible.

Follow @blakedrumm
Useful Links