February 15, 2010

FreeBSD - configuring SNMP

FreeBSD# cd /usr/ports/net-mgmnt/net-snmp
FreeBSD# make && make install && make clean
FreeBSD# cd /usr/local/share/snmp
FreeBSD# cp snmpd.conf.example snmpd.conf
FreeBSD# ee snmpd.conf

com2sec local     localhost       NAME_OF_COMMUNITY
com2sec mynetwork LOCAL_NET/MASK (ex. 192.168.0.0/24)      NAME_OF_COMMUNITY

FreeBSD# echo 'snmpd_enable="YES"' >> /etc/rc.conf
FreeBSD# /usr/local/etc/rc.d/snmpd start
FreeBSD# snmpwalk -c NAME_OF_COMMUNITY -v 1 localhost .

No comments:

Post a Comment