What is the command line utility to check, enable or disable debug on Control-M/Agent? - INCLUDES VIDEO

Version 4
    Share:|

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Agent for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Agent for UNIX and Microsoft Windows


    APPLIES TO:

    All versions of Control-M/Agent for UNIX and Microsoft Windows All platform and OS



    QUESTION:

    - How to check, enable and disable debug on Control-M/Agent using command line?
    - How to stop the logs in the Control-M/Agent proclog directory from growing larger in file size?


    ANSWER:

    1. To check if the debug is enabled on Control-M/Agent (0 = Disabled)
    - Launch the command prompt
    - Run: agdbglvl

    You should get a message similar to this:
    The current debug level for the agent is: 0
    To set the debug level, specify a value in the range 0-5

    2. To enable the debug on Control-M/Agent
        Option 1:
            - Launch the command prompt
            - Run: agdbglvl <debug level number>
                For example:
                To enable the debug on level 4, run: agdbglvl 4
            
        Option 2:
            - Launch ctmagcfg
            - Select " Diagnostic Level"
            - Enter the <debug level number>

    3. To disable the debug on Control-M/Agent
        Option 1:
            - Launch the command prompt
            - Run: agdbglvl 0
        
        Option 2:
            - Launch ctmagcfg
            - Select " Diagnostic Level"
            - Enter 0
            
    Additional Information:
    - It is recommended to open a ticket with Control-M Support Team before running any debug so to ensure that the debug details collected is necessary.
     

    The following video (In Chinese) demonstrates this solution:

                                         
    Other languages:EspañolItaliano

     


    Article Number:

    000123879


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles