About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
snmpwalk prints Timeout: No Response from followed by the agent's address when no reply arrives before its timeout and retries run out. The message does not say why. Either the client never sent the request, the agent never saw it, or the agent saw it and chose not to answer. Net-SNMP's own FAQ separates these cases with the -d option, which dumps the raw packets, and the checks below follow that order.
What the symptom means
In the Net-SNMP source, snmpwalk writes Timeout: No Response from %s to standard error when the request status is a timeout, then stops with exit status 1. The %s is the agent address as given to the session.
Two defaults set how long that takes. The snmpcmd manual says -t timeout is "the timeout in seconds between retries. The default is 1." and -r retries has a default of 5. With those defaults the client sends the first request and five retries, which is six requests about one second apart, so the message appears after roughly six seconds (calculated from these defaults). Raising -t or -r only helps when the agent is slow, not when the request never arrives.
The FAQ explains the two basic reasons a request goes unanswered: "Either the management application does not like the request (so never sends it), or the agent does not like the request (so never responds)." Its second entry says the agent either never sees the request or "receives it but is unwilling (or unable) to process it".
Two agent behaviours matter here. By default snmpd listens on "UDP port 161 on all IPv4 interfaces", so a target reached over IPv6 or a listener bound to one address gets nothing (our reading of that default). And for the community-based protocols the FAQ says that "if the agent receives an SNMPv1 or SNMPv2c request with a unknown community string, then it will not return an error response - the request is simply discarded." A wrong community therefore looks exactly like a blocked port.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| A firewall drops UDP 161 on the path or on the agent host | The agent shows no incoming packets | The agent run in the foreground with -d prints nothing when you query |
| snmpd is stopped, or listens on other addresses | Nothing answers on 161 at the target address | ss -lunp on the agent shows no snmpd socket on that address, or only 127.0.0.1 |
| Wrong community string, or no access directive | The agent prints an incoming packet dump but sends nothing | No rocommunity line matches the string, or its source restriction excludes the client |
| Source restriction or hosts access rules | An incoming dump with no reply, and a log message about a refused request for hosts.allow or hosts.deny | The agent log mentions the refusal |
| Wrong version or credentials | A v1 or v2c request to an agent that has only SNMPv3 users | No rocommunity line exists and only rouser lines are present in the agent's configuration |
| The agent is slow or overloaded | Replies appear after the client gave up | -t 60 -r 0 returns data |
| Wrong address or port | The target is not the agent | The address printed after the message is not the host you meant |
Prove the cause before changing anything
1. Dump the packets on the client. The FAQ says to run the command "with the command-line option '-d'". Use a numeric OID so no MIB files are needed. The community name here is an example.
snmpwalk -v 2c -c monitor-ro -d 198.51.100.10 1.3.6.1.2.1.1
If no hex dump of an outgoing packet appears, the client dropped the request and the printed error explains why. If outgoing dumps appear and nothing comes back, the request is failing at the agent end.
2. Rule out a slow agent. The FAQ suggests "-t 60 -r 0", which sends one request and waits a minute.
snmpwalk -v 2c -c monitor-ro -t 60 -r 0 198.51.100.10 1.3.6.1.2.1.1
If data now arrives, the agent is slow and the timeout was the problem.
3. Check the agent is running. On the agent host:
systemctl is-active snmpd
The systemctl manual says this prints the current unit state. active is good.
4. Check where snmpd listens.
ss -lunp
The ss manual documents -l (listening), -u (UDP), -n (numeric) and -p (show the process). Look for snmpd on port 161. A local address of 0.0.0.0:161 means all IPv4 interfaces; 127.0.0.1:161 means the loopback only, which the snmpd manual says "prevents snmpd being queried remotely".
5. Read the access lines in the configuration.
cat /etc/snmp/snmpd.conf
The snmpd manual lists /etc/snmp/snmpd.conf as one of the files snmpd parses. Look for agentaddress, rocommunity and rouser. The snmpd.conf manual says rocommunity COMMUNITY [SOURCE [OID | -V VIEW [CONTEXT]]] gives read-only access "regardless of where they were sent from" unless a SOURCE restricts it.
6. Check the local firewall rules on the agent. The FAQ points at iptables -L for the case where the agent never sees the request. Use the firewall tool your server uses, and look for UDP 161 from the client address.
7. If you still cannot tell, watch the agent receive the request. The FAQ's method is to stop the agent and restart it by hand with -f -Le -d, which prints raw dumps of the packets seen and sent. That is a changing step, so it follows the full sequence.
First save the current state of the service:
systemctl is-active snmpd > /root/snmpd-state.2026-12-01.txt
Disruptive step: the next commands stop the snmpd service, so every monitoring system polling this host gets no answer until you start it again. Do this only if the saved state says active and a short monitoring gap is acceptable.
Stop the service, then run the agent in the foreground with logging to standard error and packet dumps. The snmpd manual says -f means "Do not fork() from the calling shell", -d dumps sent and received packets in hexadecimal, and -L selects where log output goes.
systemctl stop snmpd
snmpd -f -Le -d
From the client, in a second session, repeat step 1. The packet dumps on both machines contain the community string, so read them in a private session. If the agent prints nothing, it is not receiving the request. If it prints an incoming dump and no outgoing one, the cause is access control, as the FAQ explains.
To undo it: press Ctrl+C to end the foreground agent, start the service again, and check it against the saved state.
systemctl start snmpd
systemctl is-active snmpd
cat /root/snmpd-state.2026-12-01.txt
Both outputs should read active.
Fix
Firewall
If the agent saw nothing, the cause is a firewall on the path or on the agent host that does not pass UDP 161 from the monitoring host. The change is made in that firewall's own tool, under its own change process. The topics "firewalld rules gone after reboot or reload: runtime versus permanent" and "Validating firewall changes for hosted application dependencies" cover making such a change last and checking it does not break other ports.
snmpd not listening where the client expects
First save the current file:
cp -p /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.2026-12-01
Disruptive step: the next edit and the restart after it make snmpd listen on every IPv4 interface, so anything that can reach UDP 161 and knows an allowed community can query this host, and the restart interrupts polling for a moment.
Edit agentaddress in /etc/snmp/snmpd.conf. The snmpd.conf manual says "The default behaviour is to listen on UDP port 161 on all IPv4 interfaces." A port number alone is a valid listening address, so replace a loopback-only line such as agentaddress 127.0.0.1:161 with:
agentaddress 161
Then restart and read the service's messages:
systemctl restart snmpd
journalctl -u snmpd
To undo it: restore the saved file under its original name, restart, and check the listener again.
cp -p /etc/snmp/snmpd.conf.2026-12-01 /etc/snmp/snmpd.conf
systemctl restart snmpd
ss -lunp
Community or source not allowed
First save the file as it is now, under a name of its own so the copy made in the previous section is not overwritten:
cp -p /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.2026-12-01-b
Risk: the next edit grants read access to the whole OID tree for one community string from one address, and the restart interrupts polling for a moment. A wrong SOURCE keeps the symptom; a missing one allows any address.
Add or correct one line, with the community your client uses and the client's address as the SOURCE:
rocommunity monitor-ro 203.0.113.5
The manual says only one directive should be specified for a given community string. Then restart:
systemctl restart snmpd
To undo it: restore the file saved just before this edit (the -b copy), restart, and run the client query again.
cp -p /etc/snmp/snmpd.conf.2026-12-01-b /etc/snmp/snmpd.conf
systemctl restart snmpd
Example (illustrative): mon01 (203.0.113.5) runs snmpwalk -v 2c -c monitor-ro 198.51.100.10 1.3.6.1.2.1.1 against web01 and prints Timeout: No Response from 198.51.100.10. With -d, outgoing dumps appear and nothing returns. On web01, systemctl is-active snmpd prints active, but ss -lunp shows snmpd on 127.0.0.1:161 only, and snmpd.conf contains agentaddress 127.0.0.1:161. The listener is loopback-only, so the request never reaches it. The engineer saves the file, changes the line to agentaddress 161, restarts snmpd, and sees 0.0.0.0:161 in ss -lunp. The same query from mon01 now returns the system group.
Confirm the fix
ss -lunpon the agent shows snmpd on the address the client uses.- The snmpwalk command from the monitoring host returns values instead of the timeout message.
- The monitoring system's own poll succeeds with the same community.
What to watch afterwards
- Poll the same OID from the monitoring host after any firewall change, agent upgrade or address change.
- When a poll starts timing out again, repeat step 1 first: it tells you at once whether the request left.
- Keep one
rocommunityline per community and record the SOURCE it was given.
Read next
Related articles you may want next.
- Troubleshootingrsyslog not forwarding to a remote syslog server: check the protocol, the receiver and the queuersyslog logs locally but nothing reaches the remote syslog server? Check protocol, listener, rule order and queues with rsyslogd -N1 and ss first.Read article
- Troubleshootingfirewalld rules gone after reboot or reload: runtime versus permanentfirewall-cmd rules vanish after a reload or reboot because they were runtime only. Compare runtime and permanent lists, add --permanent and reload safely.Read article
- HostingValidating firewall changes for hosted application dependenciesHow to baseline required ports for hosted applications and verify connectivity after routine firewall rule changes—not post-incident policy restore.Read article
Risks and limits
- These commands have not been run or lab-tested.
- The snmpd.conf path is the one Debian's manual lists; other distributions may place it elsewhere.
- SNMPv3 users (
createUser,rouser) have their own set-up and error messages and are not covered. - The FAQ entries show neither a date nor a version number.
- A timeout can also come from an agent that is overloaded, which the FAQ treats as a separate case with its own advice.
Sources
- snmpwalk.c — Net-SNMP project source repository, tag v5.9.3, no date shown, accessed 1 December 2026
- snmpcmd(1) — Debian Manpages, bookworm (Net-SNMP 5.9.3), source updated 2023-01-03, accessed 1 December 2026
- snmpwalk(1) — Debian Manpages, bookworm (Net-SNMP 5.9.3), source updated 2023-01-03, accessed 1 December 2026
- snmpd(8) — Debian Manpages, bookworm (Net-SNMP 5.9.3), source updated 2023-01-03, accessed 1 December 2026
- snmpd.conf(5) — Debian Manpages, bookworm (Net-SNMP 5.9.3), source updated 2023-01-03, accessed 1 December 2026
- FAQ:Applications 03 (Why can't I see anything from the agent?) — Net-SNMP Wiki, no date shown, accessed 1 December 2026
- FAQ:Applications 04 (Why doesn't the agent respond?) — Net-SNMP Wiki, no date shown, accessed 1 December 2026
- FAQ:Applications 07 (The agent worked for a while, then stopped responding) — Net-SNMP Wiki, no date shown, accessed 1 December 2026
- ss(8) — Debian Manpages, bookworm, source updated 2023-05-22, accessed 1 December 2026
- systemctl(1) — Debian Manpages, bookworm, source updated 2025-03-06, accessed 1 December 2026
- journalctl(1) — Debian Manpages, bookworm, source updated 2025-03-06, accessed 1 December 2026
This article was originally published on .