Enabling debug logs for agents

This section describes how to enable debug logs for VCS agents.

To enable debug logs for agents

  1. Set the configuration to read-write:

    haconf -makerw

  2. Enable logging and set the desired log levels. The following example depicts the command for the IPMultiNIC resource type.

    hatype -modify IPMultiNIC LogDbg DBG_1 DBG_2 DBG_4 DBG_21

    See the description of the LogDbg attribute for more information.

    See Resource type attributes.

  3. For script-base agents, run the halog command to add the messages to the engine log:

    halog -addtags DBG_1 DBG_2 DBG_4 DBG_21

  4. Save the configuration.

    haconf -dump -makero

For script entry points, log messages from all instances of the agent appear on all nodes in the engine log. For C++ entry points, messages from an instance of the agent appear in the agent log on the node on which the agent is running.

If DBG_AGDEBUG is set, the agent framework logs for an instance of the agent appear in the agent log on the node on which the agent is running.