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

📄 net-snmp-agent-manpages-snmpd.conf.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                --><!-- This material may be distributed only subject to the terms      --><!-- and conditions set forth in the Open Publication License, v1.0  --><!-- or later (the latest version is presently available at          --><!-- http://www.opencontent.org/openpub/).                           --><!-- Distribution of the work or derivative of the work in any       --><!-- standard (paper) book form is prohibited unless prior           --><!-- permission is obtained from the copyright holder.               --><HTML><HEAD><TITLE>snmpd.conf</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="SNMP for eCos"HREF="net-snmp-ecos-port.html"><LINKREL="PREVIOUS"TITLE="MIB Compiler "HREF="net-snmp-mib-compiler.html"><LINKREL="NEXT"TITLE="Embedded HTTP Server"HREF="net-httpd.html"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="net-snmp-mib-compiler.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 47. SNMP for <SPANCLASS="emphasis"><ICLASS="EMPHASIS">eCos</I></SPAN></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="net-httpd.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="NET-SNMP-AGENT-MANPAGES-SNMPD.CONF">snmpd.conf</H1><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">SNMPD.CONF(5)                                       SNMPD.CONF(5)NAME       share/snmp/snmpd.conf  -  configuration  file for the ucd-       snmp SNMP agent.DESCRIPTION       snmpd.conf is the configuration file which defines how the       ucd-smnp SNMP agent operates.  These files may contain any       of the directives found in the DIRECTIVES  section  below.       This  file  is  not  required for the agent to operate and       report mib entries.PLEASE READ FIRST       First, make sure you have read the  snmp_config(5)  manual       page  that  describes how the ucd-snmp configuration files       operate, where they are located  and  how  they  all  work       together.EXTENSIBLE-MIB       The  ucd-snmp  SNMP  agent reports much of its information       through queries to the 1.3.6.1.4.1.2021 section of the mib       tree.   Every  mib in this section has the following table       entries in it.       .1 -- index              This is the table's index numbers for each  of  the              DIRECTIVES listed below.       .2 -- name              The  name of the given table entry.  This should be              unique, but is not required to be.       .100 -- errorFlag              This is a flag returning either the integer value 1              or  0 if an error is detected for this table entry.       .101 -- errorMsg              This is a DISPLAY-STRING describing any error trig-              gering the errorFlag above.       .102 -- errorFix              If  this entry is SNMPset to the integer value of 1              AND the errorFlag defined above is indeed  a  1,  a              program  or script will get executed with the table              entry name from above as the argument.  The program              to  be  executed is configured in the config.h file              at compile time.   Directives       proc NAME       proc NAME MAX       proc NAME MAX MIN              Checks to see if the NAME'd processes  are  running              on  the  agent's  machine.  An error flag (1) and a              description  message  are  then   passed   to   the              1.3.6.1.4.1.2021.2.100  and  1.3.6.1.4.1.2021.2.101              mib tables (respectively) if the NAME'd program  is              not  found  in  the  process  table  as reported by              "/bin/ps -e".              If MAX and MIN are not specified, MAX is assumed to              be infinity and MIN is assumed to be 1.              If  MAX  is specified but MIN is not specified, MIN              is assumed to be 0.       procfix NAME PROG ARGS              This registers a command  that  knows  how  to  fix              errors   with   the   given   process  NAME.   When              1.3.6.1.4.1.2021.2.102 for a given NAMEd program is              set to the integer value of 1, this command will be              called.  It defaults to a compiled value set  using              the PROCFIXCMD definition in the config.h file.       exec NAME PROG ARGS       exec MIBNUM NAME PROG ARGS              If  MIBNUM is not specified, the agent executes the              named PROG with arguments of ARGS and  returns  the              exit status and the first line of the STDOUT output              of   the   PROG   program   to   queries   of   the              1.3.6.1.4.1.2021.8.100  and  1.3.6.1.4.1.2021.8.101              mib  tables  (respectively).   All  STDOUT   output              beyond the first line is silently truncated.              If  MIBNUM  is  specified,  it  acts  as  above but              returns the exit status  to  MIBNUM.100.0  and  the              entire  STDOUT  output to the table MIBNUM.101 in a              mib table.  In this case, the MIBNUM.101  mib  con-              tains the entire STDOUT output, one mib table entry              per line of output (ie, the first line is output as              MIBNUM.101.1,  the second at MIBNUM.101.2, etc...).              Note:  The MIBNUM must be specified in dotted-inte-                     ger  notation  and  can  not be specified as                     ".iso.org.dod.internet..."  (should  instead                     be              Note:  The  agent caches the exit status and STDOUT                     of the executed program for 30 seconds after                     the  initial  query.   This  is  to increase                     speed and maintain consistency  of  informa-                     tion  for  consecutive  table  queries.  The                     cache can be flushed by a  snmp-set  request                     of  integer(1)  to 1.3.6.1.4.1.2021.100.VER-                     CLEARCACHE.       execfix NAME PROG ARGS              This registers a command  that  knows  how  to  fix              errors  with  the  given  exec  or  sh  NAME.  When              1.3.6.1.4.1.2021.8.102 for a given NAMEd  entry  is              set to the integer value of 1, this command will be              called.  It defaults to a compiled value set  using              the EXECFIXCMD definition in the config.h file.       disk PATH       disk PATH [ MINSPACE | MINPERCENT% ]              Checks  the  named disks mounted at PATH for avail-              able disk space.  If the disk space  is  less  than              MINSPACE  (kB) if specified or less than MINPERCENT              (%) if a  %  sign  is  specified,  or  DEFDISKMINI-              MUMSPACE  (kB)  if  not  specified,  the associated              entry in the 1.3.6.1.4.1.2021.9.100 mib table  will              be  set to (1) and a descriptive error message will              be returned to queries of 1.3.6.1.4.1.2021.9.101.       load MAX1       load MAX1 MAX5       load MAX1 MAX5 MAX15              Checks the load average of the machine and  returns              an error flag (1), and an text-string error message              to   queries   of    1.3.6.1.4.1.2021.10.100    and              1.3.6.1.4.1.2021.10.101   (respectively)  when  the              1-minute, 5-minute, or  15-minute  averages  exceed              the associated maximum values.  If any of the MAX1,              MAX5, or MAX15 values are unspecified, they default              to a value of DEFMAXLOADAVE.       file FILE [MAXSIZE]              Monitors  file sizes and makes sure they don't grow              beyond a certain size.  MAXSIZE defaults  to  infi-              nite  if  not specified, and only monitors the size              without reporting errors about it.   Errors       Any errors in obtaining the above information are reported       via    the    1.3.6.1.4.1.2021.101.100    flag   and   the       1.3.6.1.4.1.2021.101.101 text-string description.SMUX SUB-AGENTS       To enable and SMUX based sub-agent, such as gated, use the       smuxpeer configuration entry       smuxpeer OID PASS              For gated a sensible entry might be       .1.3.6.1.4.1.4.1.3 secretACCESS CONTROL       snmpd  supports the View-Based Access Control Model (vacm)       as defined in RFC 2275.  To this end,  it  recognizes  the       following  keywords  in  the  configuration file: com2sec,       group, access, and view  as  well  as  some  easier-to-use       wrapper   directives:  rocommunity,  rwcommunity,  rouser,       rwuser.       rocommunity COMMUNITY [SOURCE] [OID]       rwcommunity COMMUNITY [SOURCE] [OID]              These create read-only and  read-write  communities              that  can  be used to access the agent.  They are a              quick method of using the following com2sec, group,              access,  and view directive lines.  They are not as              efficient either, as groups aren't created  so  the              tables  are possibly larger.  In other words: don't              use these if you have complex situations to set up.              The  format  of the SOURCE is token is described in              the com2sec directive section below.  The OID token              restricts  access  for that community to everything              below that given OID.       rouser USER [noauth|auth|priv] [OID]       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 com2sec,  group,              access, and view directives instead.              The minimum level of authentication and privacy the              user must use  is  specified  by  the  first  token              (which  defaults  to  "auth").   The  OID parameter              restricts access for that user to everything  below              the given OID.       com2sec NAME SOURCE COMMUNITY              This   directive   specifies  the  mapping  from  a              source/community pair to a  security  name.  SOURCE              can be a hostname, a subnet, or the word "default".              A subnet can be specified as  IP/MASK  or  IP/BITS.              The first source/community combination that matches

⌨️ 快捷键说明

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