1 | Enabling bsnmpd on FreeBSD |
---|
2 | |
---|
3 | 1. Log in to your FreeBSD auth1 DNS server (auth1.grpX.dns.nsrc.org) |
---|
4 | |
---|
5 | 2. Edit (as root) /etc/snmpd.config, and change the following settings: |
---|
6 | |
---|
7 | Change: |
---|
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 | |
---|
17 | Save the file and exit the editor. |
---|
18 | |
---|
19 | 3. Enable bsnmpd in /etc/rc.conf |
---|
20 | |
---|
21 | $ sudo vi /etc/rc.conf |
---|
22 | |
---|
23 | # Add this |
---|
24 | |
---|
25 | bsnmpd_enable="YES" |
---|
26 | |
---|
27 | Save the file and exit the editor. |
---|
28 | |
---|
29 | 4. Start snmpd |
---|
30 | |
---|
31 | $ sudo service bsnmpd start |
---|
32 | |
---|
33 | 5. 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 |
---|