# Check dnl\_softswitch log

The location for dnl\_softswitch log is as follows:

> /opt/denovo\_v6/dnl\_softswitch/log/dnl\_softswitch.log

If your dnl\_softswitch is started successfully, you should see the following lines inside this log:

```
2022-12-28 08:57:37  [NOTICE] routing_data.c:11516 Loading table rate data done
2022-12-28 08:57:37  [NOTICE] routing_data.c:11518 Loading table rate done, elapsed 0(s), loaded 1 records
2022-12-28 08:57:37  [WARNING] routing_data.c:11634 ********** All data loading done **********
2022-12-28 08:57:37  [WARNING] routing_data.c:11638 ********** dnl_softswitch Started **********

```

If you see error such as the following, you should go to the config file and modify the correct IP where postgres is listened on:

```
2022-12-28 08:57:10  [NOTICE] dnl_shaken.c:1615 SHAKEN status thread: couldn't connect to the database!
2022-12-28 08:57:11  [WARNING] dnl_call_qos_report.c:326 DB connect failed, PQstatus:1, connection to server at "154.27.74.199", port 5432 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections?
```

The path for dnl\_softswitch config is as follows:

> /opt/denovo\_v6/dnl\_softswitch/conf/dnl\_softswitch.conf

To check the IP for your postgres instance, you can use the following command:

```
[root@switch01 log]# netstat -anp |grep postgres
tcp        0      0 127.0.0.1:5432          127.0.0.1:56800         ESTABLISHED 1885/postgres: webb 
tcp        0      0 127.0.0.1:5432          127.0.0.1:49280         ESTABLISHED 2286/postgres: webb 

```

Inside the dnl\_softswitch.conf, you can find the \[db] block to modify the postgres IP accordingly:

```

[db]
db_host = 127.0.0.1
db_listen_port = 5432
db_name = class4_dnl
db_user = class4_user
db_user_password = 123456


```


---

# 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/validate-your-installation/check-dnl_softswitch-log.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.
