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 .iso.org.dod.internet.mgmt.mib-2.system
50 # Finally, grant the 2 groups access to the 1 view with different
53 # context sec.model sec.level match read write notif
54 +access MyROSystem "" any noauth exact system none none
55 access MyROGroup "" any noauth exact all none none
56 access MyRWGroup "" any noauth exact all all none
59 # value of an object whose value is given here will fail with an error
60 # status of notWritable.
62 -syslocation Right here, right now.
63 -syscontact Me <me@somewhere.org>
64 +syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
65 +syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
67 # Example output of snmpwalk:
68 # % snmpwalk -v 1 -c public localhost system
72 # Make sure mountd is running
76 # Make sure there are no more than 4 ntalkds running, but 0 is ok too.
80 # Make sure at least one sendmail, but less than or equal to 10 are running.
84 # A snmpwalk of the prTable would look something like this:
87 # ARGS: optional arguments to be passed to the program
89 # a simple hello world
90 -exec echotest /bin/echo hello world
91 +#exec echotest /bin/echo hello world
93 # Run a shell script containing:
97 # Check the / partition and make sure it contains at least 10 megs.
102 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM
103 # enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
105 # 15MAX: Similar, but for 15 min average.
111 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM
112 # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1
114 # (commented out here since it requires that you place the
115 # script in the right location. (its not installed by default))
117 -# pass .EXTENSIBLEDOTMIB.255 /bin/sh PREFIX/local/passtest
118 +# pass .EXTENSIBLEDOTMIB.255 /bin/sh /usr/local/passtest
120 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255
121 # enterprises.ucdavis.255.1 = "life the universe and everything"
122 --- net-snmp-5.1.2.orig/EXAMPLE-trap.conf
123 +++ net-snmp-5.1.2/EXAMPLE-trap.conf
125 +###############################################################################
127 +# EXAMPLE-trap.conf:
128 +# An example configuration file for configuring the Net-SNMP snmptrapd agent.
130 +###############################################################################
132 +# This file is intended to only be an example. If, however, you want
133 +# to use it, it should be placed in /etc/snmp/snmptrapd.conf.
134 +# When the snmptrapd agent starts up, this is where it will look for it.
136 +# All lines beginning with a '#' are comments and are intended for you
137 +# to read. All other lines are configuration commands for the agent.
140 +# PLEASE: read the snmptrapd.conf(5) manual page as well!