Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 48 additions & 20 deletions content/en/network_monitoring/devices/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,54 @@ The output should look similar to the following:

- Run an `snmp walk` on the device's admin IP to determine why the Agent cannot connect to your device.

**Note**: Provide your credentials directly in the CLI. If credentials aren't provided, the Agent attempts to locate them in your running Agent configuration files.

**Linux**: <br />
SNMP v2:
```
sudo -u dd-agent datadog-agent snmp walk <IP Address> -C <COMMUNITY_STRING>
```
SNMP v3:
```
sudo -u dd-agent datadog-agent snmp walk <IP Address> -A <AUTH_KEY> -a <AUTH_PROTOCOL> -X <PRIV_KEY> -x <PRIV_PROTOCOL>
```
**Windows**:
```
agent snmp walk <IP Address>[:Port]
**Note**: Provide your credentials directly in the CLI. If credentials aren't provided, the Agent attempts to locate them in your running Agent configuration files.

Refer to your vendor specific documentation for additional information on running these commands.

Example:
agent.exe snmp walk 10.143.50.30 1.3.6
```
{{< tabs >}}
{{% tab "Linux" %}}

SNMP v2:

```shell
sudo -u dd-agent datadog-agent snmp walk <IP Address> -C <COMMUNITY_STRING>
```

Refer to your vendor specific documentation for additional information on running these commands.
SNMP v3:

```shell
sudo -u dd-agent datadog-agent snmp walk <IP Address> -A <AUTH_KEY> -a <AUTH_PROTOCOL> -X <PRIV_KEY> -x <PRIV_PROTOCOL>
```

{{% /tab %}}
{{% tab "Windows" %}}

Navigate to the Agent installation directory:

```shell
cd "c:\Program Files\Datadog\Datadog Agent\bin"
```

Run the SNMP walk command:

```shell
agent snmp walk <IP Address>[:Port]
```

Example:

```shell
agent.exe snmp walk 10.143.50.30 1.3.6
```

**Note**: Run this command as administrator from the Agent installation directory to avoid the following error:

```shell
Error: unable to read artifact: open C:\ProgramData\Datadog\auth_token: Access is denied.
```

{{% /tab %}}
{{< /tabs >}}

## Troubleshooting SNMP errors

Expand All @@ -104,7 +132,7 @@ If you see a permission denied error while port binding in agent logs, the port

Run `iptables -L OUTPUT` and ensure there is no deny rule:

```
```shell
vagrant@agent-dev-ubuntu-22:~$ sudo iptables -L OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Expand Down Expand Up @@ -215,7 +243,7 @@ Check for any rules blocking UDP traffic on your configured ports. For example:`
**Solution**:
Add a net bind capability to the Agent binary, which allows the Agent to bind to reserved ports:

```
```shell
sudo setcap 'cap_net_bind_service=+ep' /opt/datadog-agent/bin/agent/agent
```

Expand Down
Loading