To capture a trace
  1. On the RMS, click Start, point to Programs (or All Programs), point to System Center Operations Manager 2007 R2, point to Authoring Tools, and click Workflow Analyzer.

  2. Locate the workflow that you want to trace.

  3. Right-click the workflow and click Trace.

    You will be presented with a list of instances of the class that the monitor is running against, as well as their status. For example, if there are multiple databases discovered, you will see a workflow for each instance.

  4. Click the workflow instance that you want to trace and click Start.

    In the TraceWorkflow window, you will see two traces: submitting trace override and trace override has been submitted successfully. All subsequent trace outputs are output to an ETL file on the computer on which the agent is running.

  5. You have two options for the TraceWorkflow window on the RMS:

    • You can leave the TraceWorkflow window open (recommended). Close the window after you are done troubleshooting the workflow.

    • You can close the TraceWorkflow window. A Stop window appears, asking if you want to stop debugging the current session. Click No. The override will remain intact and the workflow will continue to trace until the WFAnalyzer is launched again and another workflow is traced. There can only be one workflow traced for a management group at a time. Since the override is persisted in the database, it will survive Agent Health Service restarts and will always trace.

      If you click Yes, workflow tracing on the agent will stop. When you attempt to connect to an existing trace session on the agent, WFAnalyzer will fail to show any traces or the traces will be incomplete.
  6. Copy WFAnalyzer.exe to the Operations Manager installation directory on the computer on which the agent is running.

  7. On the computer on which the agent is running, run WFAnalyzer.

  8. In the Start a new session window, the only available option is Connect to an existing Workflow Analysis. Click Start.

    The TraceWorkflow window appears and displays all the traces that have been logged. All the trace to continue until you see a NotifyError.

  9. Copy the WorkflowTrace.log from the %TEMP% directory and send this to Microsoft Customer Service and Support or your management pack developer.

  10. Close WFAnalyzer on the computer on which the agent is running, and then close the TraceWorkflow window on the RMS.

    To any prompts that ask if you want to stop the session or stop debugging, click Yes or OK.

See Also