Getting snmpwalk to talk to snmpd on FreeBSD

NOTE: If you are looking to configure net-mgmt/net-snmp for the first time, the latest article is Configuration of net-mgmt/net-snmp on FreeBSD.

Contrary to all the examples I found, it’s not easy to get snmpwalk to communicate with snmpd.

I am using the net-mgmt/net-snmp port with the default configuration options.

It was installed with: pkg install net-mgmt/net-snmp

This is the minimal configuration file, which should be placed at /usr/local/etc/snmp/snmpd.conf:

rocommunity  public

When starting snmpd for the *first* time, you should see [something like] this in /var/log/snmpd.log:

Created directory: /var/net-snmp
Created directory: /var/net-snmp/mib_indexes
NET-SNMP version 5.7.2

Now you should be able to get some simple output, like this:

$ snmpwalk -c public -v 1 SNMPv2-MIB::sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 amd64

If you get something like this, check /var/log/snmpd.log:

$ snmpwalk -c public -v 1
Timeout: No Response from

I hope this helps.

See also this recipe I use:

Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive

1 thought on “Getting snmpwalk to talk to snmpd on FreeBSD”

  1. Thank you for this post, Dan. The minimalist approach is helpful as a reference point from which to start.

    When one sees “Timeout: No Response” the first place to look is /etc/hosts.allow. A strategically-placed

    snmpd : : ALLOW

    will allow snmpwalk on the localhost to connect to the local snmpd daemon.

Leave a Comment

Scroll to Top