Blame SOURCES/net-snmp.redhat.conf

b5ae06
###############################################################################
b5ae06
#
b5ae06
# snmpd.conf:
b5ae06
#   An example configuration file for configuring the ucd-snmp snmpd agent.
b5ae06
#
b5ae06
###############################################################################
b5ae06
#
b5ae06
# This file is intended to only be as a starting point.  Many more
b5ae06
# configuration directives exist than are mentioned in this file.  For 
b5ae06
# full details, see the snmpd.conf(5) manual page.
b5ae06
#
b5ae06
# All lines beginning with a '#' are comments and are intended for you
b5ae06
# to read.  All other lines are configuration commands for the agent.
b5ae06
b5ae06
###############################################################################
b5ae06
# Access Control
b5ae06
###############################################################################
b5ae06
b5ae06
# As shipped, the snmpd demon will only respond to queries on the
b5ae06
# system mib group until this file is replaced or modified for
b5ae06
# security purposes.  Examples are shown below about how to increase the
b5ae06
# level of access.
b5ae06
b5ae06
# By far, the most common question I get about the agent is "why won't
b5ae06
# it work?", when really it should be "how do I configure the agent to
b5ae06
# allow me to access it?"
b5ae06
#
b5ae06
# By default, the agent responds to the "public" community for read
b5ae06
# only access, if run out of the box without any configuration file in 
b5ae06
# place.  The following examples show you other ways of configuring
b5ae06
# the agent so that you can change the community names, and give
b5ae06
# yourself write access to the mib tree as well.
b5ae06
#
b5ae06
# For more information, read the FAQ as well as the snmpd.conf(5)
b5ae06
# manual page.
b5ae06
b5ae06
####
b5ae06
# First, map the community name "public" into a "security name"
b5ae06
b5ae06
#       sec.name  source          community
b5ae06
com2sec notConfigUser  default       public
b5ae06
b5ae06
####
b5ae06
# Second, map the security name into a group name:
b5ae06
b5ae06
#       groupName      securityModel securityName
b5ae06
group   notConfigGroup v1           notConfigUser
b5ae06
group   notConfigGroup v2c           notConfigUser
b5ae06
b5ae06
####
b5ae06
# Third, create a view for us to let the group have rights to:
b5ae06
b5ae06
# Make at least  snmpwalk -v 1 localhost -c public system fast again.
b5ae06
#       name           incl/excl     subtree         mask(optional)
b5ae06
view    systemview    included   .1.3.6.1.2.1.1
b5ae06
view    systemview    included   .1.3.6.1.2.1.25.1.1
b5ae06
b5ae06
####
b5ae06
# Finally, grant the group read-only access to the systemview view.
b5ae06
b5ae06
#       group          context sec.model sec.level prefix read   write  notif
b5ae06
access  notConfigGroup ""      any       noauth    exact  systemview none none
b5ae06
b5ae06
# -----------------------------------------------------------------------------
b5ae06
b5ae06
# Here is a commented out example configuration that allows less
b5ae06
# restrictive access.
b5ae06
b5ae06
# YOU SHOULD CHANGE THE "COMMUNITY" TOKEN BELOW TO A NEW KEYWORD ONLY
b5ae06
# KNOWN AT YOUR SITE.  YOU *MUST* CHANGE THE NETWORK TOKEN BELOW TO
b5ae06
# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.
b5ae06
b5ae06
##       sec.name  source          community
b5ae06
#com2sec local     localhost       COMMUNITY
b5ae06
#com2sec mynetwork NETWORK/24      COMMUNITY
b5ae06
b5ae06
##     group.name sec.model  sec.name
b5ae06
#group MyRWGroup  any        local
b5ae06
#group MyROGroup  any        mynetwork
b5ae06
#
b5ae06
#group MyRWGroup  any        otherv3user
b5ae06
#...
b5ae06
b5ae06
##           incl/excl subtree                          mask
b5ae06
#view all    included  .1                               80
b5ae06
b5ae06
## -or just the mib2 tree-
b5ae06
b5ae06
#view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc
b5ae06
b5ae06
b5ae06
##                context sec.model sec.level prefix read   write  notif
b5ae06
#access MyROGroup ""      any       noauth    0      all    none   none
b5ae06
#access MyRWGroup ""      any       noauth    0      all    all    all
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# Sample configuration to make net-snmpd RFC 1213.
b5ae06
# Unfortunately v1 and v2c don't allow any user based authentification, so
b5ae06
# opening up the default config is not an option from a security point.
b5ae06
#
b5ae06
# WARNING: If you uncomment the following lines you allow write access to your
b5ae06
# snmpd daemon from any source! To avoid this use different names for your
b5ae06
# community or split out the write access to a different community and 
b5ae06
# restrict it to your local network.
b5ae06
# Also remember to comment the syslocation and syscontact parameters later as
b5ae06
# otherwise they are still read only (see FAQ for net-snmp).
b5ae06
#
b5ae06
b5ae06
# First, map the community name "public" into a "security name"
b5ae06
#       sec.name        source          community
b5ae06
#com2sec notConfigUser   default         public
b5ae06
b5ae06
# Second, map the security name into a group name:
b5ae06
#       groupName       securityModel   securityName
b5ae06
#group   notConfigGroup  v1              notConfigUser
b5ae06
#group   notConfigGroup  v2c             notConfigUser
b5ae06
b5ae06
# Third, create a view for us to let the group have rights to:
b5ae06
# Open up the whole tree for ro, make the RFC 1213 required ones rw.
b5ae06
#       name            incl/excl       subtree mask(optional)
b5ae06
#view    roview          included        .1
b5ae06
#view    rwview          included        system.sysContact
b5ae06
#view    rwview          included        system.sysName
b5ae06
#view    rwview          included        system.sysLocation
b5ae06
#view    rwview          included        interfaces.ifTable.ifEntry.ifAdminStatus
b5ae06
#view    rwview          included        at.atTable.atEntry.atPhysAddress
b5ae06
#view    rwview          included        at.atTable.atEntry.atNetAddress
b5ae06
#view    rwview          included        ip.ipForwarding
b5ae06
#view    rwview          included        ip.ipDefaultTTL
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteDest
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteIfIndex
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteMetric1
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteMetric2
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteMetric3
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteMetric4
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteType
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteAge
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteMask
b5ae06
#view    rwview          included        ip.ipRouteTable.ipRouteEntry.ipRouteMetric5
b5ae06
#view    rwview          included        ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaIfIndex
b5ae06
#view    rwview          included        ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress
b5ae06
#view    rwview          included        ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaNetAddress
b5ae06
#view    rwview          included        ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaType
b5ae06
#view    rwview          included        tcp.tcpConnTable.tcpConnEntry.tcpConnState
b5ae06
#view    rwview          included        egp.egpNeighTable.egpNeighEntry.egpNeighEventTrigger
b5ae06
#view    rwview          included        snmp.snmpEnableAuthenTraps
b5ae06
b5ae06
# Finally, grant the group read-only access to the systemview view.
b5ae06
#       group          context sec.model sec.level prefix read   write  notif
b5ae06
#access  notConfigGroup ""      any       noauth    exact  roview rwview none
b5ae06
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# System contact information
b5ae06
#
b5ae06
b5ae06
# It is also possible to set the sysContact and sysLocation system
b5ae06
# variables through the snmpd.conf file:
b5ae06
b5ae06
syslocation Unknown (edit /etc/snmp/snmpd.conf)
b5ae06
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
b5ae06
b5ae06
# Example output of snmpwalk:
b5ae06
#   % snmpwalk -v 1 localhost -c public system
b5ae06
#   system.sysDescr.0 = "SunOS name sun4c"
b5ae06
#   system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.sunos4
b5ae06
#   system.sysUpTime.0 = Timeticks: (595637548) 68 days, 22:32:55
b5ae06
#   system.sysContact.0 = "Me <me@somewhere.org>"
b5ae06
#   system.sysName.0 = "name"
b5ae06
#   system.sysLocation.0 = "Right here, right now."
b5ae06
#   system.sysServices.0 = 72
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# Logging
b5ae06
#
b5ae06
b5ae06
# We do not want annoying "Connection from UDP: " messages in syslog.
b5ae06
# If the following option is commented out, snmpd will print each incoming
b5ae06
# connection, which can be useful for debugging.
b5ae06
b5ae06
dontLogTCPWrappersConnects yes
b5ae06
b5ae06
# -----------------------------------------------------------------------------
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# Process checks.
b5ae06
#
b5ae06
#  The following are examples of how to use the agent to check for
b5ae06
#  processes running on the host.  The syntax looks something like:
b5ae06
#
b5ae06
#  proc NAME [MAX=0] [MIN=0]
b5ae06
#
b5ae06
#  NAME:  the name of the process to check for.  It must match
b5ae06
#         exactly (ie, http will not find httpd processes).
b5ae06
#  MAX:   the maximum number allowed to be running.  Defaults to 0.
b5ae06
#  MIN:   the minimum number to be running.  Defaults to 0.
b5ae06
b5ae06
#
b5ae06
#  Examples (commented out by default):
b5ae06
#
b5ae06
b5ae06
#  Make sure mountd is running
b5ae06
#proc mountd
b5ae06
b5ae06
#  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
b5ae06
#proc ntalkd 4
b5ae06
b5ae06
#  Make sure at least one sendmail, but less than or equal to 10 are running.
b5ae06
#proc sendmail 10 1
b5ae06
b5ae06
#  A snmpwalk of the process mib tree would look something like this:
b5ae06
# 
b5ae06
# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.2
b5ae06
# enterprises.ucdavis.procTable.prEntry.prIndex.1 = 1
b5ae06
# enterprises.ucdavis.procTable.prEntry.prIndex.2 = 2
b5ae06
# enterprises.ucdavis.procTable.prEntry.prIndex.3 = 3
b5ae06
# enterprises.ucdavis.procTable.prEntry.prNames.1 = "mountd"
b5ae06
# enterprises.ucdavis.procTable.prEntry.prNames.2 = "ntalkd"
b5ae06
# enterprises.ucdavis.procTable.prEntry.prNames.3 = "sendmail"
b5ae06
# enterprises.ucdavis.procTable.prEntry.prMin.1 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prMin.2 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prMin.3 = 1
b5ae06
# enterprises.ucdavis.procTable.prEntry.prMax.1 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prMax.2 = 4
b5ae06
# enterprises.ucdavis.procTable.prEntry.prMax.3 = 10
b5ae06
# enterprises.ucdavis.procTable.prEntry.prCount.1 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prCount.2 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prCount.3 = 1
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrorFlag.1 = 1
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrorFlag.2 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrorFlag.3 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrMessage.1 = "No mountd process running."
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrMessage.2 = ""
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrMessage.3 = ""
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrFix.1 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrFix.2 = 0
b5ae06
# enterprises.ucdavis.procTable.prEntry.prErrFix.3 = 0
b5ae06
#
b5ae06
#  Note that the errorFlag for mountd is set to 1 because one is not
b5ae06
#  running (in this case an rpc.mountd is, but thats not good enough),
b5ae06
#  and the ErrMessage tells you what's wrong.  The configuration
b5ae06
#  imposed in the snmpd.conf file is also shown.  
b5ae06
# 
b5ae06
#  Special Case:  When the min and max numbers are both 0, it assumes
b5ae06
#  you want a max of infinity and a min of 1.
b5ae06
#
b5ae06
b5ae06
b5ae06
# -----------------------------------------------------------------------------
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# Executables/scripts
b5ae06
#
b5ae06
b5ae06
#
b5ae06
#  You can also have programs run by the agent that return a single
b5ae06
#  line of output and an exit code.  Here are two examples.
b5ae06
#
b5ae06
#  exec NAME PROGRAM [ARGS ...]
b5ae06
#
b5ae06
#  NAME:     A generic name. The name must be unique for each exec statement.
b5ae06
#  PROGRAM:  The program to run.  Include the path!
b5ae06
#  ARGS:     optional arguments to be passed to the program
b5ae06
b5ae06
# a simple hello world
b5ae06
b5ae06
#exec echotest /bin/echo hello world
b5ae06
b5ae06
# Run a shell script containing:
b5ae06
#
b5ae06
# #!/bin/sh
b5ae06
# echo hello world
b5ae06
# echo hi there
b5ae06
# exit 35
b5ae06
#
b5ae06
# Note:  this has been specifically commented out to prevent
b5ae06
# accidental security holes due to someone else on your system writing
b5ae06
# a /tmp/shtest before you do.  Uncomment to use it.
b5ae06
#
b5ae06
#exec shelltest /bin/sh /tmp/shtest
b5ae06
b5ae06
# Then, 
b5ae06
# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.8
b5ae06
# enterprises.ucdavis.extTable.extEntry.extIndex.1 = 1
b5ae06
# enterprises.ucdavis.extTable.extEntry.extIndex.2 = 2
b5ae06
# enterprises.ucdavis.extTable.extEntry.extNames.1 = "echotest"
b5ae06
# enterprises.ucdavis.extTable.extEntry.extNames.2 = "shelltest"
b5ae06
# enterprises.ucdavis.extTable.extEntry.extCommand.1 = "/bin/echo hello world"
b5ae06
# enterprises.ucdavis.extTable.extEntry.extCommand.2 = "/bin/sh /tmp/shtest"
b5ae06
# enterprises.ucdavis.extTable.extEntry.extResult.1 = 0
b5ae06
# enterprises.ucdavis.extTable.extEntry.extResult.2 = 35
b5ae06
# enterprises.ucdavis.extTable.extEntry.extOutput.1 = "hello world."
b5ae06
# enterprises.ucdavis.extTable.extEntry.extOutput.2 = "hello world."
b5ae06
# enterprises.ucdavis.extTable.extEntry.extErrFix.1 = 0
b5ae06
# enterprises.ucdavis.extTable.extEntry.extErrFix.2 = 0
b5ae06
b5ae06
# Note that the second line of the /tmp/shtest shell script is cut
b5ae06
# off.  Also note that the exit status of 35 was returned.
b5ae06
b5ae06
# -----------------------------------------------------------------------------
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# disk checks
b5ae06
#
b5ae06
b5ae06
# The agent can check the amount of available disk space, and make
b5ae06
# sure it is above a set limit.  
b5ae06
b5ae06
# disk PATH [MIN=100000]
b5ae06
#
b5ae06
# PATH:  mount path to the disk in question.
b5ae06
# MIN:   Disks with space below this value will have the Mib's errorFlag set.
b5ae06
#        Default value = 100000.
b5ae06
b5ae06
# Check the / partition and make sure it contains at least 10 megs.
b5ae06
b5ae06
#disk / 10000
b5ae06
b5ae06
# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.9
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskPath.1 = "/" Hex: 2F 
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskDevice.1 = "/dev/dsk/c201d6s0"
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskMinimum.1 = 10000
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskTotal.1 = 837130
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskAvail.1 = 316325
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskUsed.1 = 437092
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskPercent.1 = 58
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskErrorFlag.1 = 0
b5ae06
# enterprises.ucdavis.diskTable.dskEntry.diskErrorMsg.1 = ""
b5ae06
b5ae06
# -----------------------------------------------------------------------------
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# load average checks
b5ae06
#
b5ae06
b5ae06
# load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
b5ae06
#
b5ae06
# 1MAX:   If the 1 minute load average is above this limit at query
b5ae06
#         time, the errorFlag will be set.
b5ae06
# 5MAX:   Similar, but for 5 min average.
b5ae06
# 15MAX:  Similar, but for 15 min average.
b5ae06
b5ae06
# Check for loads:
b5ae06
#load 12 14 14
b5ae06
b5ae06
# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.10
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveIndex.2 = 2
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveIndex.3 = 3
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveNames.1 = "Load-1"
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveNames.2 = "Load-5"
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveNames.3 = "Load-15"
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.1 = "0.49" Hex: 30 2E 34 39 
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.2 = "0.31" Hex: 30 2E 33 31 
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.3 = "0.26" Hex: 30 2E 32 36 
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveConfig.1 = "12.00"
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveConfig.2 = "14.00"
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveConfig.3 = "14.00"
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveErrorFlag.1 = 0
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveErrorFlag.2 = 0
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveErrorFlag.3 = 0
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveErrMessage.1 = ""
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveErrMessage.2 = ""
b5ae06
# enterprises.ucdavis.loadTable.laEntry.loadaveErrMessage.3 = ""
b5ae06
b5ae06
# -----------------------------------------------------------------------------
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# Extensible sections.
b5ae06
# 
b5ae06
b5ae06
# This alleviates the multiple line output problem found in the
b5ae06
# previous executable mib by placing each mib in its own mib table:
b5ae06
b5ae06
# Run a shell script containing:
b5ae06
#
b5ae06
# #!/bin/sh
b5ae06
# echo hello world
b5ae06
# echo hi there
b5ae06
# exit 35
b5ae06
#
b5ae06
# Note:  this has been specifically commented out to prevent
b5ae06
# accidental security holes due to someone else on your system writing
b5ae06
# a /tmp/shtest before you do.  Uncomment to use it.
b5ae06
#
b5ae06
# exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest
b5ae06
b5ae06
# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.50
b5ae06
# enterprises.ucdavis.50.1.1 = 1
b5ae06
# enterprises.ucdavis.50.2.1 = "shelltest"
b5ae06
# enterprises.ucdavis.50.3.1 = "/bin/sh /tmp/shtest"
b5ae06
# enterprises.ucdavis.50.100.1 = 35
b5ae06
# enterprises.ucdavis.50.101.1 = "hello world."
b5ae06
# enterprises.ucdavis.50.101.2 = "hi there."
b5ae06
# enterprises.ucdavis.50.102.1 = 0
b5ae06
b5ae06
# Now the Output has grown to two lines, and we can see the 'hi
b5ae06
# there.' output as the second line from our shell script.
b5ae06
#
b5ae06
# Note that you must alter the mib.txt file to be correct if you want
b5ae06
# the .50.* outputs above to change to reasonable text descriptions.
b5ae06
b5ae06
# Other ideas:
b5ae06
# 
b5ae06
# exec .1.3.6.1.4.1.2021.51 ps /bin/ps 
b5ae06
# exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top
b5ae06
# exec .1.3.6.1.4.1.2021.53 mailq /usr/bin/mailq
b5ae06
b5ae06
# -----------------------------------------------------------------------------
b5ae06
b5ae06
b5ae06
###############################################################################
b5ae06
# Pass through control.
b5ae06
# 
b5ae06
b5ae06
# Usage:
b5ae06
#   pass MIBOID EXEC-COMMAND
b5ae06
#
b5ae06
# This will pass total control of the mib underneath the MIBOID
b5ae06
# portion of the mib to the EXEC-COMMAND.  
b5ae06
#
b5ae06
# Note:  You'll have to change the path of the passtest script to your
b5ae06
# source directory or install it in the given location.
b5ae06
# 
b5ae06
# Example:  (see the script for details)
b5ae06
#           (commented out here since it requires that you place the
b5ae06
#           script in the right location. (its not installed by default))
b5ae06
b5ae06
# pass .1.3.6.1.4.1.2021.255 /bin/sh /usr/local/local/passtest
b5ae06
b5ae06
# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.255
b5ae06
# enterprises.ucdavis.255.1 = "life the universe and everything"
b5ae06
# enterprises.ucdavis.255.2.1 = 42
b5ae06
# enterprises.ucdavis.255.2.2 = OID: 42.42.42
b5ae06
# enterprises.ucdavis.255.3 = Timeticks: (363136200) 42 days, 0:42:42
b5ae06
# enterprises.ucdavis.255.4 = IpAddress: 127.0.0.1
b5ae06
# enterprises.ucdavis.255.5 = 42
b5ae06
# enterprises.ucdavis.255.6 = Gauge: 42
b5ae06
#
b5ae06
# % snmpget -v 1 localhost public .1.3.6.1.4.1.2021.255.5
b5ae06
# enterprises.ucdavis.255.5 = 42
b5ae06
#
b5ae06
# % snmpset -v 1 localhost public .1.3.6.1.4.1.2021.255.1 s "New string"
b5ae06
# enterprises.ucdavis.255.1 = "New string"
b5ae06
#
b5ae06
b5ae06
# For specific usage information, see the man/snmpd.conf.5 manual page
b5ae06
# as well as the local/passtest script used in the above example.
b5ae06
b5ae06
###############################################################################
b5ae06
# Further Information
b5ae06
#
b5ae06
#  See the snmpd.conf manual page, and the output of "snmpd -H".