<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.snmp.php',
    1 => 'SNMP',
    2 => 'SNMP',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => '其它服务',
  ),
  'prev' => 
  array (
    0 => 'function.scoutapm-list-instrumented-functions.php',
    1 => 'scoutapm_list_instrumented_functions',
  ),
  'next' => 
  array (
    0 => 'snmp.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/snmp/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.snmp.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.snmp" class="book">
 
 <h1 class="title">SNMP</h1>

 
 <div id="intro.snmp" class="preface">
  <h1 class="title">简介</h1>
  <p class="simpara">
   SNMP 扩展提供了非常简单易用的工具集，用于通过简单网络管理协议管理远程设备。
  </p>
  <p class="simpara">
   由于是底层 Net-SNMP 库的封装协议，所有基本概念都是相同的，并且
   PHP 函数会根据 Net-SNMP 配置文件和环境变量更改其行为。
  </p>
  <p class="simpara">
   有关 Net-SNMP 的更多信息，请访问
   <a href="http://www.net-snmp.org/" class="link external">&raquo;&nbsp;http://www.net-snmp.org/</a>
  </p>
 </div>
 

 




 






 







 




 




<ul class="chunklist chunklist_book"><li><a href="snmp.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="snmp.requirements.php">需求</a></li><li><a href="snmp.installation.php">安装</a></li></ul></li><li><a href="snmp.constants.php">预定义常量</a></li><li><a href="ref.snmp.php">SNMP 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.snmp-get-quick-print.php">snmp_get_quick_print</a> — 获取当前 NET-SNMP 库的 quick_print 设置的值</li><li><a href="function.snmp-get-valueretrieval.php">snmp_get_valueretrieval</a> — Return the method how the SNMP values will be returned</li><li><a href="function.snmp-read-mib.php">snmp_read_mib</a> — Reads and parses a MIB file into the active MIB tree</li><li><a href="function.snmp-set-enum-print.php">snmp_set_enum_print</a> — Return all values that are enums with their enum value instead of the raw integer</li><li><a href="function.snmp-set-oid-numeric-print.php">snmp_set_oid_numeric_print</a> — 别名 snmp_set_oid_output_format</li><li><a href="function.snmp-set-oid-output-format.php">snmp_set_oid_output_format</a> — Set the OID output format</li><li><a href="function.snmp-set-quick-print.php">snmp_set_quick_print</a> — 在 NET-SNMP 库中设置 enable 的值</li><li><a href="function.snmp-set-valueretrieval.php">snmp_set_valueretrieval</a> — Specify the method how the SNMP values will be returned</li><li><a href="function.snmp2-get.php">snmp2_get</a> — Fetch an SNMP object</li><li><a href="function.snmp2-getnext.php">snmp2_getnext</a> — Fetch the SNMP object which follows the given object id</li><li><a href="function.snmp2-real-walk.php">snmp2_real_walk</a> — Return all objects including their respective object ID within the specified one</li><li><a href="function.snmp2-set.php">snmp2_set</a> — Set the value of an SNMP object</li><li><a href="function.snmp2-walk.php">snmp2_walk</a> — Fetch all the SNMP objects from an agent</li><li><a href="function.snmp3-get.php">snmp3_get</a> — Fetch an SNMP object</li><li><a href="function.snmp3-getnext.php">snmp3_getnext</a> — Fetch the SNMP object which follows the given object id</li><li><a href="function.snmp3-real-walk.php">snmp3_real_walk</a> — Return all objects including their respective object ID within the specified one</li><li><a href="function.snmp3-set.php">snmp3_set</a> — Set the value of an SNMP object</li><li><a href="function.snmp3-walk.php">snmp3_walk</a> — Fetch all the SNMP objects from an agent</li><li><a href="function.snmpget.php">snmpget</a> — 获取 SNMP 对象</li><li><a href="function.snmpgetnext.php">snmpgetnext</a> — Fetch the SNMP object which follows the given object id</li><li><a href="function.snmprealwalk.php">snmprealwalk</a> — 返回指定的所有对象，包括它们各自的对象 ID</li><li><a href="function.snmpset.php">snmpset</a> — 设置 SNMP 对象的值</li><li><a href="function.snmpwalk.php">snmpwalk</a> — 从代理获取所有 SNMP 对象</li><li><a href="function.snmpwalkoid.php">snmpwalkoid</a> — 查询有关网络实体的信息树</li></ul></li><li><a href="class.snmp.php">SNMP</a> — The SNMP class<ul class="chunklist chunklist_book chunklist_children"><li><a href="snmp.close.php">SNMP::close</a> — Close SNMP session</li><li><a href="snmp.construct.php">SNMP::__construct</a> — Creates SNMP instance representing session to remote SNMP agent</li><li><a href="snmp.get.php">SNMP::get</a> — Fetch an SNMP object</li><li><a href="snmp.geterrno.php">SNMP::getErrno</a> — Get last error code</li><li><a href="snmp.geterror.php">SNMP::getError</a> — Get last error message</li><li><a href="snmp.getnext.php">SNMP::getnext</a> — Fetch an SNMP object which
  follows the given object id</li><li><a href="snmp.set.php">SNMP::set</a> — Set the value of an SNMP object</li><li><a href="snmp.setsecurity.php">SNMP::setSecurity</a> — Configures security-related SNMPv3 session parameters</li><li><a href="snmp.walk.php">SNMP::walk</a> — Fetch SNMP object subtree</li></ul></li><li><a href="class.snmpexception.php">SNMPException</a> — The SNMPException class</li></ul></div><?php manual_footer($setup); ?>