1
--- net-snmp-5.1.2.orig/EXAMPLE.conf.def
2
+++ net-snmp-5.1.2/EXAMPLE.conf.def
4
###############################################################################
6
# This file is intended to only be an example. If, however, you want
7
-# to use it, it should be placed in SYSCONFDIR/snmp/snmpd.conf.
8
+# to use it, it should be placed in /etc/snmp/snmpd.conf.
9
# When the snmpd agent starts up, this is where it will look for it.
11
# You might be interested in generating your own snmpd.conf file using
15
# sec.name source community
16
-com2sec local localhost COMMUNITY
17
-com2sec mynetwork NETWORK/24 COMMUNITY
18
+com2sec paranoid default public
19
+#com2sec readonly default public
20
+#com2sec readwrite default private
23
# Second, map the security names into group names:
26
-group MyRWGroup v1 local
27
-group MyRWGroup v2c local
28
-group MyRWGroup usm local
29
-group MyROGroup v1 mynetwork
30
-group MyROGroup v2c mynetwork
31
-group MyROGroup usm mynetwork
32
+group MyROSystem v1 paranoid
33
+group MyROSystem v2c paranoid
34
+group MyROSystem usm paranoid
35
+group MyROGroup v1 readonly
36
+group MyROGroup v2c readonly
37
+group MyROGroup usm readonly
38
+group MyRWGroup v1 readwrite
39
+group MyRWGroup v2c readwrite
40
+group MyRWGroup usm readwrite
43
# Third, create a view for us to let the groups have rights to:
45
# incl/excl subtree mask
46
view all included .1 80
47
+view system included .1.3.6.1.2.1.1
48
+#view system included .iso.org.dod.internet.mgmt.mib-2.system
51
# Finally, grant the 2 groups access to the 1 view with different
54
# context sec.model sec.level match read write notif
55
+access MyROSystem "" any noauth exact system none none
56
access MyROGroup "" any noauth exact all none none
57
access MyRWGroup "" any noauth exact all all none
60
# value of an object whose value is given here will fail with an error
61
# status of notWritable.
63
-syslocation Right here, right now.
64
-syscontact Me <me@somewhere.org>
65
+syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
66
+syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
68
# Example output of snmpwalk:
69
# % snmpwalk -v 1 -c public localhost system
73
# Make sure mountd is running
77
# Make sure there are no more than 4 ntalkds running, but 0 is ok too.
81
# Make sure at least one sendmail, but less than or equal to 10 are running.
85
# A snmpwalk of the prTable would look something like this:
88
# ARGS: optional arguments to be passed to the program
90
# a simple hello world
91
-exec echotest /bin/echo hello world
92
+#exec echotest /bin/echo hello world
94
# Run a shell script containing:
98
# Check the / partition and make sure it contains at least 10 megs.
103
# % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM
104
# enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
106
# 15MAX: Similar, but for 15 min average.
112
# % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM
113
# enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1
115
# (commented out here since it requires that you place the
116
# script in the right location. (its not installed by default))
118
-# pass .EXTENSIBLEDOTMIB.255 /bin/sh PREFIX/local/passtest
119
+# pass .EXTENSIBLEDOTMIB.255 /bin/sh /usr/local/passtest
121
# % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255
122
# enterprises.ucdavis.255.1 = "life the universe and everything"
123
--- net-snmp-5.1.2.orig/EXAMPLE-trap.conf
124
+++ net-snmp-5.1.2/EXAMPLE-trap.conf
1
Index: net-snmp-5.4.3/EXAMPLE-trap.conf
2
===================================================================
3
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
4
+++ net-snmp-5.4.3/EXAMPLE-trap.conf 2010-06-04 17:15:48.000000000 +0200
126
6
+###############################################################################