📄 c-agent5.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> The WindNet SNMPv1/v2c Agent </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="c-agent.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-agent4.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent6.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="83749">4.5 MIB Tree</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83750"> </a>The MIB-II management information base (MIB) tree is defined in <b class="file">$WIND_BASE/target/src/snmpv1/agent/snmpMib2.c</b><sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup>. The branches of the tree correspond to the components of the object identifiers naming the management objects. The sequence of components in an object identifier forms a path through the tree leading to a leaf on the tree.</p><dd><p class="Body"><a name="83757"> </a>Each internal node of the tree is defined by an instance of <b class="symbol_UC">MIBNODE_T</b>. Each leaf is defined by an instance of <b class="symbol_UC">MIBLEAF_T</b>.</p><dd><p class="Body"><a name="83758"> </a>Associated with each internal leaf is a list of the nodes and leaves descending from that node. This list is defined by an array of instances of <b class="symbol_UC">MIBARC_T</b>. Each list <i class="emphasis">must</i> contain at least one element.</p><dd><p class="Body"><a name="83762"> </a>WindNet SNMPv1/v2c provides several popular MIB definition files:</p><dl class="margin"><dd><div class="Indent"><a name="83763"> </a><b class="file">$WIND_BASE/target/src/snmpv1/mibs/*.mib <br>$WIND_BASE/target/src/snmpv1/agent/snmpMib2.mib</b></div><br></dl><dd><p class="Body"><a name="83764"> </a>Use these files as templates to write your own MIBs. For more information on ASN.1 syntax and on MIB files in general, see the references listed in <a href="x-snmpRefList.html#83419"><i class="title">E. SNMP Reference List</i></a>. For information on <b class="command">mibcomp</b>, the MIB compiler, see <a href="x-mibcomp.html#83422"><i class="title">A. The MIB Compiler User's Guide</i></a>.</p></dl></dl><a name="foot"><hr></a><p class="FootnoteNumberMarker">1: <span class="Footnote"><a name="83753"> </a><b class="command">mibcomp</b>'s output from <b class="file">snmpMib2.mib</b> (using the <b class="command">-mib.c</b> option ) is a C representation of the MIB data tree named <b class="file">snmpMib2.c</b>, which we present complete with ties to method routines. See <a href="x-mibcompOut.html#83488"><i class="title">-mib.c</i></a>.</span><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="c-agent.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-agent4.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent6.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -