Agenda: enable-snmp-freebsd.txt

File enable-snmp-freebsd.txt, 997 bytes (added by admin, 6 years ago)
Line 
1Enabling bsnmpd on FreeBSD
2
31. Log in to your FreeBSD auth1 DNS server (auth1.grpX.dns.nsrc.org)
4
52. Edit (as root) /etc/snmpd.config, and change the following settings:
6
7Change:
8
9  From this                                To this
10  --------------------------------------------------------------------
11  location := "Room 200"                   location := "NSRC Workshop"
12  contact := "sysmeister@example.com"      contact := "me@example.com"
13  read := "public"                         read := "NetManage"
14  write := "geheim"                        # write := "geheim"
15  trap := "mytrap"                         trap := "NetManage"
16
17Save the file and exit the editor.
18
193. Enable bsnmpd in /etc/rc.conf
20
21$ sudo vi /etc/rc.conf
22
23# Add this
24
25bsnmpd_enable="YES"
26
27Save the file and exit the editor.
28
294.  Start snmpd
30
31$ sudo service bsnmpd start
32
335. Test from your virtual pc (pcX.ws.nsrc.org) that you can access the
34   FreeBSD SNMP agent:
35
36$ snmpstatus -v 2c -c NetManage auth1.grpX.dns.nsrc.org