Important Update: Cohesity Products Knowledge Base Articles


All Cohesity Knowledge Base Articles are now managed via the Cohesity Support Portal: https://support.cohesity.com/s/searchunify. The Knowledge Base articles available here will not reflect the latest information or may no longer be accessible.

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

Article: 100026892
Last Published: 2025-06-22
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?