Skip to content

Commit 9c705bb

Browse files
[DOCS-12595] updating SNMP troubleshooting (#32764)
* updating SNMP troubleshooting * updating per feedback
1 parent fc64281 commit 9c705bb

File tree

1 file changed

+48
-20
lines changed

1 file changed

+48
-20
lines changed

content/en/network_monitoring/devices/troubleshooting.md

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,26 +59,54 @@ The output should look similar to the following:
5959
6060
- Run an `snmp walk` on the device's admin IP to determine why the Agent cannot connect to your device.
6161
62-
**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.
63-
64-
**Linux**: <br />
65-
SNMP v2:
66-
```
67-
sudo -u dd-agent datadog-agent snmp walk <IP Address> -C <COMMUNITY_STRING>
68-
```
69-
SNMP v3:
70-
```
71-
sudo -u dd-agent datadog-agent snmp walk <IP Address> -A <AUTH_KEY> -a <AUTH_PROTOCOL> -X <PRIV_KEY> -x <PRIV_PROTOCOL>
72-
```
73-
**Windows**:
74-
```
75-
agent snmp walk <IP Address>[:Port]
62+
**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.
63+
64+
Refer to your vendor specific documentation for additional information on running these commands.
7665
77-
Example:
78-
agent.exe snmp walk 10.143.50.30 1.3.6
79-
```
66+
{{< tabs >}}
67+
{{% tab "Linux" %}}
68+
69+
SNMP v2:
70+
71+
```shell
72+
sudo -u dd-agent datadog-agent snmp walk <IP Address> -C <COMMUNITY_STRING>
73+
```
8074

81-
Refer to your vendor specific documentation for additional information on running these commands.
75+
SNMP v3:
76+
77+
```shell
78+
sudo -u dd-agent datadog-agent snmp walk <IP Address> -A <AUTH_KEY> -a <AUTH_PROTOCOL> -X <PRIV_KEY> -x <PRIV_PROTOCOL>
79+
```
80+
81+
{{% /tab %}}
82+
{{% tab "Windows" %}}
83+
84+
Navigate to the Agent installation directory:
85+
86+
```shell
87+
cd "c:\Program Files\Datadog\Datadog Agent\bin"
88+
```
89+
90+
Run the SNMP walk command:
91+
92+
```shell
93+
agent snmp walk <IP Address>[:Port]
94+
```
95+
96+
Example:
97+
98+
```shell
99+
agent.exe snmp walk 10.143.50.30 1.3.6
100+
```
101+
102+
**Note**: Run this command as administrator from the Agent installation directory to avoid the following error:
103+
104+
```shell
105+
Error: unable to read artifact: open C:\ProgramData\Datadog\auth_token: Access is denied.
106+
```
107+
108+
{{% /tab %}}
109+
{{< /tabs >}}
82110

83111
## Troubleshooting SNMP errors
84112

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

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

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

218-
```
246+
```shell
219247
sudo setcap 'cap_net_bind_service=+ep' /opt/datadog-agent/bin/agent/agent
220248
```
221249

0 commit comments

Comments
 (0)