📄 x-mibcomp3.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> The MIB Compiler User's Guide </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="x-mibcomp.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="x-mibcomp2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-mibcomp4.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="83451">A.3 Theory of Operation</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83452"> </a>In the SNMP model of network management, a management station accesses a set of variables provided by an agent, the managed device. In the terms usually used by the TCP/IP community, the management station acts as a <i class="emphasis">client</i>, the managed device as a <i class="emphasis">server</i>.</p><dd><p class="Body"><a name="83453"> </a>The set of variables is known as a Management Information Base, or MIB. The word MIB is over used, as it can indicate the set of all variables provided by a particular device, or a set of variables grouped together in a specification<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup> (for example, the "ethernet MIB"). The MIB provided by a particular device may consist of several sets of MIBs from general specifications, as well as private MIBs designed by the device's manufacturer.</p><dd><p class="Body"><a name="83457"> </a>A MIB variable has several attributes:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83459"> </a>a <i class="emphasis">syntax</i>, often referred to as a data type</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83461"> </a>an <i class="emphasis">access specification</i> indicating whether the variable is readable or writable</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83463"> </a>a <i class="emphasis">description</i> (some ASCII text describing the variable)</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83465"> </a>an <i class="emphasis">object identifier</i> (a sequence of numbers uniquely identifying the variable)</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="83466"> </a>There may be only one instance of a variable on the device that provides it, or there may be many instances of a variable on the device, making up a column in a table.<sup><a href="#foot"><b class="FootnoteMarker">2</b></a></sup></p><dd><p class="Body"><a name="83470"> </a>MIBs are specified in a standard-format plain-text ASCII file. The description language is a stylized subset of the Abstract Syntax Notation One language (ASN.1). This subset is defined by the Structure of Management Information document (SMI) that is part of the standards defining the Internet-standard Network Management Framework. At present, there are two distinct frameworks, and thus two distinct SMIs:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83471"> </a>The original SNMPv1 SMI input format is called "Concise MIB Format," and is specified in RFC-1212. RFC-1215 provides an extension that defines SNMP traps with a TRAP-TYPE macro. The base set of data types is defined in RFC-1155.</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83472"> </a>The newer SNMPv2 SMI input format and base set of data types are specified in RFC-1442.</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="83473"> </a><b class="command">mibcomp</b> is compatible with SNMPv1 (MIB-I and MIB-II constructs) and SNMPv2c only.</p><dd><p class="Body"><a name="83474"> </a><b class="command">mibcomp</b> reads MIB descriptions from multiple input files, and performs syntax and consistency checks. <b class="command">mibcomp</b> writes an output file whose format depends on arguments specified on the command line. <b class="command">mibcomp</b> can produce C code to assist in the development of agents and managers, text files listing variables and their object identifiers, and new MIB files that are appropriate for editing and use as control files.</p><dd><p class="Body"><a name="83475"> </a><b class="command">mibcomp</b> is designed to allow you to maintain your MIB files separately, one file per MIB, and to maintain a control file which adapts the MIBs to your particular project or product without modifying the standard files. The control file can add or remove particular variables or groups of variables, and can associate <b class="command">mibcomp</b>-specific information with objects.</p><dd><p class="Body"><a name="83476"> </a><b class="command">mibcomp</b> also supports several features that are useful when more than one programmer is working on a particular project: for example, search paths for input files, to allow you to store your MIB files in one directory that is shared by multiple users.</p></dl></dl><a name="foot"><hr></a><p class="FootnoteNumberMarker">1: <span class="Footnote"><a name="83456"> </a>Properly speaking, the set of variables grouped in a particular ASN.1 module are a "MIB module," but such groupings are also commonly referred to as "MIBs."</span><p class="FootnoteNumberMarker">2: <span class="Footnote"><a name="83469"> </a>Strictly speaking, these are "conceptual tables" because they are not defined as tables in the underlying ASN.1 formal syntax. However, as with the term "MIB," most people do not bother to be very formal, and just call these constructs "tables."</span><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="x-mibcomp.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="x-mibcomp2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-mibcomp4.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 + -