📄 c-background2.html
字号:
<div class="CellBody"><a name="84005"> </a>Return a value</div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="84007"> </a><b class="command">set-request</b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84009"> </a>Set a value</div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="84011"> </a><b class="command">trap</b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84013"> </a>Event notification</div></td><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p> <div class="frame"><h4 class="EntityTitle"><a name="83620"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 3-4: SNMP Communication</font></a></h4><dl class="margin"><div class="Anchor"><a name="83646"> </a><img class="figure" border="0" src="images/c-background3.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83647">3.2.3 SNMP versions</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83648"> </a>SNMPv1 is defined by the following documents: RFC 1155, RFC 1157, and RFC 1212. SNMP version 2c (SNMPv2c) is not yet officially standardized as of this writing, though an IETF draft is available. In short, SNMPv2c improves upon SNMPv1 in the following ways:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84073"> </a>The <b class="command">get-bulk</b> directive has been added for more efficient (less network-intensive) queries.</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84077"> </a>Error codes have been expanded (see <a href="x-snmpErrors.html#83419"><i class="title">C. SNMP Errors</i></a>).</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="84081"> </a>Traps have been expanded (see <a href="c-agent7.html#83785"><i class="title">4.7 Traps</i></a>).</li></ul></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83658">3.2.4 The Management Information Base</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83659"> </a>The Management Information Base (MIB) specifies a collection of management information on the agent that is controlled and monitored by an NMS. A MIB defines all the information an NMS can extract from the agent. For example, a MIB might specify that an agent will keep track of the number of errors that occur during the checksum of TCP packets.</p><dd><p class="Body"><a name="83660"> </a>As stated previously, the objects in the MIB are separate from the actual SNMP protocol. This allows the MIB information stored in a particular agent to be extended and customized without modification to the protocol.</p><dd><p class="Body"><a name="83661"> </a>The MIB that resides in an agent may be made up of several MIB modules. There are standard MIB modules and custom MIB modules. MIB-II is a standard MIB module that contains information about the Internet network protocol suite (TCP, UDP, IP, ICMP, and so on). For an example of the development of custom MIB module, see <a href="c-extend3.html#83539"><i class="title">6.3 Compile-time MIB Extensions</i></a>.</p><dd><p class="Body"><a name="83667"> </a>For more information on available standard MIBs, see <a href="x-snmpRefList.html#83419"><i class="title">E. SNMP Reference List</i></a>. To explore the standard MIBs included with this component, examine the contents of the directory <b class="file">$WIND_BASE/target/src/snmpv1/mibs/*.mib</b> (also see <a href="c-agent2.html#85379"><i class="title">4.2.3 $WIND_BASE/target/src/snmpv1/mibs/</i></a>).</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83673">3.2.5 The Structure of Management Information</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83674"> </a>Where the MIB defines the specific network management variables stored in an agent, the Structure of Management Information (SMI) specifies how these MIB variables are defined and identified. For example, the SMI places restrictions on the MIB variable types; only a handful of types are defined (integer, octet string, and so on).</p><dd><p class="Body"><a name="83675"> </a>The names used for MIB variables are taken from the object identifier (OID) name space administered by the ISO and CCITT. The name space is hierarchical, and authority for each part of the name space is subdivided at each level. <a href="c-background2.html#84284">Figure 3-5</a> illustrates the object identifier name space hierarchy. <div class="frame"><h4 class="EntityTitle"><a name="84284"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 3-5: Object Identifier Name Space</font></a></h4><dl class="margin"><div class="Anchor"><a name="84286"> </a><img class="figure" border="0" src="images/c-backgroundb2.gif"></div></dl></div></p><dd><p class="Body"><a name="84099"> </a>Objects are named according to the sequence of the numeric values on the nodes in the path from the root to the object. The string names provide a format more easily read by users. For example:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84102"> </a><b class="keyword">MIB-II</b> is</p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84104"> </a>1.3.6.1.2.1</p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84106"> </a><b class="file">iso.org.dod.internet.mgmt.mib</b></p></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84108"> </a><b class="keyword">WRS</b> is</p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84110"> </a>1.3.6.1.4.1.731</p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84112"> </a><b class="file">iso.org.dod.internet.private.enterprises.WRS</b></p></td><td width="10"> </td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="84083"> </a></p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="c-background.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-background1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent.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 + -