⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snmpd.conf.5

📁 eCos操作系统源码
💻 5
📖 第 1 页 / 共 2 页
字号:
.TH SNMPD.CONF 5 "27 Jan 2000".ds )H U.C. Davis, ECE Dept..ds ]W V4.1.2.UC 4.SH NAMEshare/snmp/snmpd.conf - configuration file for the ucd-snmp SNMP agent..SH DESCRIPTION.B snmpd.confis the configuration file which defines how the ucd-smnp SNMP agentoperates.  These files may contain any of the directives found in theDIRECTIVES section below.  This file is not required for the agent tooperate and report mib entries..SH PLEASE READ FIRSTFirst, make sure you have read the snmp_config(5) manual page thatdescribes how the ucd-snmp configuration files operate, where theyare located and how they all work together..SH EXTENSIBLE-MIB.PPThe ucd-snmp SNMP agent reports much of its information throughqueries to the 1.3.6.1.4.1.2021 section of the mib tree.  Every mib inthis section has the following table entries in it..IP ".1 -- index"This is the table's index numbers for each of the DIRECTIVES listed below..IP ".2 -- name"The name of the given table entry.  This should be unique, but is notrequired to be..IP ".100 -- errorFlag"This is a flag returning either the integer value 1 or 0 if an erroris detected for this table entry..IP ".101 -- errorMsg"This is a DISPLAY-STRING describing any error triggering the errorFlag above..IP ".102 -- errorFix"If this entry is SNMPset to the integer value of 1 AND the errorFlagdefined above is indeed a 1, a program or script will get executedwith the table entry name from above as the argument.  The program tobe executed is configured in the config.h file at compile time..SS Directives.IP "proc NAME".IP "proc NAME MAX".IP "proc NAME MAX MIN".IPChecks to see if the NAME'd processes are running on the agent'smachine.  An error flag (1) and a description message are then passedto the 1.3.6.1.4.1.2021.2.100 and1.3.6.1.4.1.2021.2.101 mib tables (respectively) if theNAME'd program is not found in the process table as reported by "/bin/ps -e"..IPIf MAX and MIN are not specified, MAX is assumed to be .B infinityand MIN is assumed to be 1..IPIf MAX is specified but MIN is not specified, MIN is assumed to be 0..IP "procfix NAME PROG ARGS"This registers a command that knows how to fix errors with the givenprocess NAME.  When 1.3.6.1.4.1.2021.2.102 for a givenNAMEd program is set to the integer value of 1, this command will becalled.  It defaults to a compiled value set using the PROCFIXCMDdefinition in the config.h file..IP "exec NAME PROG ARGS".IP "exec MIBNUM NAME PROG ARGS".IPIf MIBNUM is not specified, the agent executes the named PROG witharguments of ARGS and returns the exit status and the first line ofthe STDOUT output of the PROG program to queries of the1.3.6.1.4.1.2021.8.100 and1.3.6.1.4.1.2021.8.101 mib tables (respectively).  AllSTDOUT output beyond the first line is silently truncated..IPIf MIBNUM is specified, it acts as above but returns the exit statusto MIBNUM.100.0 and the entire STDOUT output to the tableMIBNUM.101 in a mib table.  In this case, the MIBNUM.101 mibcontains the entire STDOUT output, one mib table entry per line ofoutput (ie, the first line is output as MIBNUM.101.1, the secondat MIBNUM.101.2, etc...)..RS.IP Note:The MIBNUM must be specified in dotted-integer notation and cannot be specified as ".iso.org.dod.internet..." (should instead be.1.3.6.1...)..IP Note: The agent caches the exit status and STDOUT of the executed programfor 30 seconds after the initial query.  This is to increase speed andmaintain consistency of information for consecutive table queries.The cache can be flushed by a snmp-set request of integer(1) to1.3.6.1.4.1.2021.100.VERCLEARCACHE..RE.IP "execfix NAME PROG ARGS"This registers a command that knows how to fix errors with the givenexec or sh NAME.  When 1.3.6.1.4.1.2021.8.102 for agiven NAMEd entry is set to the integer value of 1, this command willbe called.  It defaults to a compiled value set using the EXECFIXCMDdefinition in the config.h file..IP "disk PATH".IP "disk PATH [ MINSPACE | MINPERCENT% ]".IPChecks the named disks mounted at PATH for available disk space.  Ifthe disk space is less than MINSPACE (kB) if specified or less thanMINPERCENT (%) if a % sign is specified, or DEFDISKMINIMUMSPACE (kB)if not specified, the associated entry in the1.3.6.1.4.1.2021.9.100 mib table will be set to (1) anda descriptive error message will be returned to queries of1.3.6.1.4.1.2021.9.101..IP "load MAX1".IP "load MAX1 MAX5".IP "load MAX1 MAX5 MAX15".IPChecks the load average of the machine and returns an error flag (1),and an text-string error messageto queries of 1.3.6.1.4.1.2021.10.100 and1.3.6.1.4.1.2021.10.101 (respectively) when the1-minute, 5-minute, or 15-minute averages exceed the associatedmaximum values.  If any of the MAX1, MAX5, or MAX15 values areunspecified, they default to a value of DEFMAXLOADAVE..IP "file FILE [MAXSIZE]"Monitors file sizes and makes sure they don't grow beyond a certainsize.  MAXSIZE defaults to infinite if not specified, and onlymonitors the size without reporting errors about it..SS "Errors".PPAny errors in obtaining the above information are reported via the1.3.6.1.4.1.2021.101.100 flag and the1.3.6.1.4.1.2021.101.101 text-string description..SH SMUX SUB-AGENTSTo enable and SMUX based sub-agent, such as.IR gated ,use the.I smuxpeerconfiguration entry.IP "smuxpeer OID PASS"For .I gateda sensible entry might be.IP ".1.3.6.1.4.1.4.1.3 secret".SH ACCESS CONTROLsnmpd supports the View-Based Access Control Model (vacm)as defined in RFC 2275.To this end, it recognizes the following keywords in the configurationfile: \fIcom2sec\fR, \fIgroup\fR, \fIaccess\fR, and \fIview\fR as well as some easier-to-use wrapper directives: \fIrocommunity\fR,\fIrwcommunity\fR, \fIrouser\fR, \fIrwuser\fR..IP "rocommunity COMMUNITY [SOURCE] [OID]".IP "rwcommunity COMMUNITY [SOURCE] [OID]"These create read-only and read-write communities that can be used toaccess the agent.  They are a quick method of using the following\fIcom2sec\fR, \fIgroup\fR, \fIaccess\fR, and \fIview\fR directive lines.  They arenot as efficient either, as groups aren't created so the tables arepossibly larger.  In other words: don't use these if you have complexsituations to set up..IPThe format of the SOURCE is token is described in the \fIcom2sec\fRdirective section below.  The OID token restricts access for thatcommunity to everything below that given OID..IP "rouser USER [noauth|auth|priv] [OID]".IP "rwuser USER [noauth|auth|priv] [OID]"Creates a SNMPv3 USM user in the VACM access configuration tables.Again, its more efficient (and powerful) to use the combined\fIcom2sec\fR, \fIgroup\fR, \fIaccess\fR, and \fIview\fR directives instead..IPThe minimum level of authentication and privacy the user must use isspecified by the first token (which defaults to "auth").  The OIDparameter restricts access for that user to everything below the given OID..IP "com2sec NAME SOURCE COMMUNITY"This directive specifies the mapping from a source/community pair toa security name. SOURCE can be a hostname, a subnet, or the word\fI"default"\fR.A subnet can be specified as IP/MASK or IP/BITS.The first source/community combination that matches the incoming packetis selected..IP "group NAME MODEL SECURITY"This directive defines the mapping from securitymodel/securityname to group.MODEL is one of \fIv1\fR, \fIv2c\fR, or \fIusm\fR..IP "access NAME CONTEXT MODEL LEVEL PREFX READ WRITE NOTIFY"The access directive maps from group/security model/security level toa view. MODEL is one of \fIany\fR, \fIv1\fR, \fIv2c\fR, or \fIusm\fR.LEVEL is one of \fInoauth\fR, \fIauth\fR, or \fIpriv\fR.PREFX specifies how CONTEXT should be matched against the context ofthe incoming pdu, either \fIexact\fR or \fIprefix\fR.READ, WRITE and NOTIFY specifies the view to be used for the corresponding access.For v1 or v2c access, LEVEL will be noauth, and CONTEXT will be empty..IP "view NAME TYPE SUBTREE [MASK]"The defines the named view. TYPE is either \fIincluded\fR or \fIexcluded\fR.MASK is a list of hex octets, separated by '.' or ':'.  The MASKdefaults to "ff" if not specified..IP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -