# dnl\_tool

You need to configure the config file for dnl\_tool:

```
cd /opt/denovo_v6/dnl_tools/conf/
vi  dnl_tools.conf

```

balance\_unifie&#x64;*\_*&#x75;pdate should be set to false:

```
#The client balance unifed update featue, default is disable
balance_unified_update = true   ← change this to false

```

dnl\_tool can auto remove CDRs and reports from DB after they are older than certain number of days.&#x20;

```
#Automatic clean the old data of the database, default is false
auto_clean_db = true  ← change this to false
```

```
[create_table]
#Enable or disable create sub-table feature, default is true
#The create sub-table sql in conf/create_table.sql
create_table = true  ← change this to false

```

```
[balance_daily]
#Enable or disable balance daily feature, default is disable
create_balance_daily = yes ← Change this to no
```

```
#Enable or disable generate balance log feature, default is disable

```

In the case of multiple switch instance installation, you need to make sure only one dnl tool instance has balance handling enabled.  By default, it is enabled.  That means you need to turn it off in all dnl\_tool.conf except the one that is enabled.  Here is how you disable balance handling:

```
#The client balance unifed update featue, default is disable
balance_unified_update = true

#Automatic clean the old data of the database, default is false
auto_clean_db = true

[create_table]
#Enale or disable create sub-table feature, default is true
#The create sub-table sql in conf/create_table.sql
create_table = true
#Create sub-table execute hour, default is 23
#create_table_execute_hour = 23

[balance_daily]
#Enable or disable balance daily feature, default is disable
create_balance_daily = yes
balance_daily_execute_hour = 5
using_cdr_report_table = cdr_report_detail
#Enable or disable generate balance log feature, default is disable
generate_balance_log = yes
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cookbook.denovolab.com/installation/distributed-architecture/switch-server/dnl_tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
