Install net-snmp from the ports collection

# cd /usr/ports/net-mgmnt/net-snmp
# make install clean

edit /etc/rc.conf and add the following line:

snmpd_enable="YES"

edit /usr/local/share/snmp/snmpd.conf and add the following:

syslocation home            # replace home with the name you would like to use
syscontact [email protected]      # put in the systems admin e-mail address
rocommunity public          # replace with the read only name you would like to use
rwcommunity private         # change this to the writable password you would like to use
master yes

Start the SNMP daemon

# /usr/local/etc/rc.d/snmpd.sh start

At this point, you up and running with a very basic snmp configuration. There's a handy utility called snmpconf that can be run to help you generate the snmp.conf (optional) and snmpd.conf files. This will give you more options and help tighten up security.

Now, you should be able to snmpwalk your host using the following: snmpwalk -v1 -c public 127.0.0.1