How to change 'Logging Level' (Trace level) of a Data Provisioning Agent?
SOLUTION
There are 4 ways to modify Agent Preferences and the agent logging level:
- Graphical Mode
- Command Line Interactive Mode
- Command Line Batch Mode
- Manually editing the dpagentconfig.ini
The graphical and the manual mode are explained here because they are most commonly used
Graphical Mode
1) Create a backup of the Data Provisioning Agent configuration file <DPAgent_root>/dpagentconfigtool.ini
2) Then start the configuration tool on the DP Agent machine,
- On Windows, run dpagentconfigtool.exe.
- On Linux, run ./dpagentconfigtool.
Note: Start the configuration tool using the Data Provisioning Agent installation owner. The installation owner is the same user that is used to start the agent service.
3) Now connect to the SAP HANA server.
4) Then choose [Config] -> [Preferences] in the Data Provisioning Agent Configuration tool, and then select Adapter Framework.
5) Modify 'Logging Level:' to one of the following levels:
- TRACE
- DEBUG
- ERROR
- ALL
6) Click on Apply
7) Click on OK
Manual Modification
1) Create a backup of the Data Provisioning Agent configuration file <DPAgent_root>/dpagentconfigtool.ini
2) Now stop the SAP HANA Data Provisioning Agent service on the DP Agent machine.
- On Windows, use the Services manager in Control Panel.
- On Linux, run ./dpagent_service.sh stop
- Note: Make sure to stop and start the service with the installation owner on Linux.
3) Open the Agent configuration file for editing: <DPAgent_root>/dpagentconfigtool.ini
4) Find the parameter framework.log.level
5) Modify to one of the following levels:
- TRACE
- DEBUG
- ERROR
- ALL
6) Now Save the file
7) At last restart the SAP HANA Data Provisioning Agent service.
- On Windows, use the Services manager in Control Panel.
- On Linux, run ./dpagent_service.sh start.