How to debug BEMCLI calls in the background when the powershell script is executed

Article: 100026892
Last Published: 2018-03-02
Ratings: 0 0
Product(s): Backup Exec

Problem

How to debug BEMCLI calls in the background when the PowerShell script is executed

Solution

Log errors on Host :

Set-BETraceSource Verbose -PSHost

This command starts BEMCLI tracing for information level events and logs them to the Windows PowerShell host. PSHost - logs on Host and output is displayed on screen

Pipe to Debugger:

Set-BETraceSource Verbose -Debugger

Third party debug checkbox needs to be selected in SGMON

When debugging has been completed, turn off verbose debugging with the switch

Set-BETraceSource Verbose -RemoveDebugger

Debug to FilePath:

Set-BETraceSource Verbose -FilePath <path to file>
 

Turn off Debugging for the host machine:

Set-BETraceSource -RemovePSHost

Was this content helpful?