Linux Agent - Enable Debug mode
Question
How do I enable Debug mode on a CDP Linux Agent?
Solution
This procedure will help in troubleshooting problems, it will place more verbose messages in the CDP Agent log file (cdp.log).
Edit the following file then restart the CDP Agent to take effect, be sure to turn Debug mode off when this problem is resolved so that your CDP Agent log files don’t grow too large. You can turn this off by placing the # sign in front of the Debug=1 line or just delete those two lines and save the text file.
Use your favorite Linux editor (vi, nano, etc.) to edit the CDP Agent configuration file:
/usr/sbin/r1soft/conf/agent_config
Add the following 2 lines to the end of the 'agent_config' file: (be sure to hit 'enter' at the end of the 'Debug' line to get a new line before saving)
Now restart the CDP Host Agent module:
To test this you can 'tail' the CDP Agent log file to see the new [Debug] lines that are added to the logs.
Here is an excerpt from a Linux Agent log file with Debug enabled.
[2012-Feb-01 18:25:38],[ INFO],[10.230.125.130:52801],Executing backup request...
[2012-Feb-01 18:25:38],[ERROR],[10.230.125.130:52801],An exception occurred during the request. Replication driver missing; Unable to open driver at '/dev/hcp'; No such device or address
[2012-Feb-01 18:25:38],[DEBUG],[10.230.125.130:52801],sending command response request ERROR
[2012-Feb-01 18:25:38],[ INFO],[10.230.125.130:52801],Command completed; Waiting for next command.
[2012-Feb-01 18:25:38],[DEBUG],[10.230.125.130:52801],Determining protocol message to execute.
[2012-Feb-01 18:25:38],[ INFO],[10.230.125.130:52801],Executing backup request...
[2012-Feb-01 18:25:38],[ERROR],[10.230.125.130:52801],An exception occurred during the request. Replication driver missing; Unable to open driver at '/dev/hcp'; No such device or address
[2012-Feb-01 18:25:38],[DEBUG],[10.230.125.130:52801],sending command response request ERROR
[2012-Feb-01 18:25:38],[ INFO],[10.230.125.130:52801],Command completed; Waiting for next command.
[2012-Feb-01 18:25:39],[ INFO],[10.230.125.130:52801],Received request finished!
[2012-Feb-01 18:25:39],[DEBUG],[NO-CONNECTION],Connection [10.230.125.130:52801] closed.
[2012-Feb-01 18:25:39],[DEBUG],[NO-CONNECTION],releasing connection: 0
Related Articles
Page: Linux Agent - Enable Debug mode (Knowledge Base) Labels: debug, agent |
Page: CDP Linux Agent and custom kernel driver version (Knowledge Base) Labels: agent, version, cdp, hcpdriver |
Page: Linux Agent - Enable Debug mode (Knowledge Base) Labels: debug, agent |
Page: How To - Download Protected Machine logs to the Backup Manager (Knowledge Base) Labels: download, agent, logs |