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

📄 c-agent2.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</dl><dd><div class="Item"><a name="83632"> </a><b class="file">envoy.h</b>, <b class="file">install.h</b>, <b class="file">snmp.h</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent4"><a name="83633"> </a> <br>Various definitions and compile-time constants needed to build the SNMP agent.</div><br></dl></dl></dl></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83635">4.2.2  &nbsp;&nbsp;<b class="file">$WIND_BASE/target/src/snmpv1/agent/</b></a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83636"> </a>The <b class="file">agent</b> subdirectory consists of several source files, including:</p></dl><dl class="margin"><dd><div class="Item"><a name="83637"> </a><b class="file">snmpIoLib.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83638"> </a>This file contains routines which determine the operation of the SNMP agent. All SNMP agent behavior, including input and output, community validation, and trap generation is controlled by the routines in this library. This file is provided as source code; modify it to tailor the agent to your specific needs. See <a href="c-config2.html#83591"><i class="title">5.2&nbsp;Configuring snmpIoLib</i></a>.</div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="83642"> </a><b class="file">snmpMib2.mib</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83643"> </a>A definition of MIB-II facilities in ASN.1. This file, when input to <b class="command">mibcomp</b> using the <b class="command">-mib.c</b> option (see <a href="x-mibcompOut.html#83488"><i class="title">-mib.c</i></a>), produces the file <b class="file">snmpMib2.c</b>, which contains the tree structure used by the SNMP agent to access the MIB-II variables.</div><br></dl></dl></dl></dl></dl></dl><dl class="margin"><dd><p class="Body"><a name="83647"> </a>The following files in the agent directory provide the MIB-II agent method routines which interface the SNMP agent to system routines in the VxWorks <b class="library">m2</b> libraries. (For information about MIB-II system routines, see the manual entry for <b class="library">m2Lib</b> in the <i class="title">VxWorks Reference Manual</i>.) These files are provided as source code in order to provide a working example to those who need to write their own method routines. </p></dl></dl><dl class="margin"><dd><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><a name="83657"><br></a><img border="0" alt="*" src="icons/warning.gif">&nbsp;&nbsp;&nbsp;</td><td><div class="Warning"><hr><b class="symbol_UC">WARNING: </b>Modifying these files is highly discouraged and could easily cause the agent to not function. <hr></div></td></tr></table><dl class="margin"><dd><div class="Item"><a name="83658"> </a><b class="file">snmpIcmp.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83659"> </a>ICMP group method routines</div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="83660"> </a><b class="file">snmpIf.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83661"> </a>Interface group method routines</div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="83662"> </a><b class="file">snmpIp.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83663"> </a>IP group method routines</div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="83664"> </a><b class="file">snmpSystem.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83665"> </a>System group method routines</div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="83666"> </a><b class="file">snmpTcp.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83667"> </a>TCP group method routines</div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="83668"> </a><b class="file">snmpUdp.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83669"> </a>UDP group method routines</div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="83670"> </a><b class="file">snmpSnmp.c</b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="83671"> </a>Method routines for SNMPv1 statistics.</div><br></dl></dl></dl></dl></dl></dl><dl class="margin"><dd><p class="Body"><a name="85350"> </a>The following files provide functionality that support distributed agents. That is, an SNMP agent that consists of a master SNMP agent and one or more subagents. This is an optional feature. For more information, see <a href="c-sub_agents.html#84506"><i class="title">7.&nbsp;SNMP Distributed Agents</i></a>. </p></dl><dl class="margin"><dd><div class="Item"><a name="85388"> </a>masterIoLib.c</div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="85389"> </a>Master agent IPC routines. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="85407"> </a>saIoLib.c</div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="85408"> </a>Subagent IPC routines. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="85376"> </a>subagentLib.c</div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="85377"> </a>Distributed agent routines not part of the IPC mechanism. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="85398"> </a>taskRoutine.c</div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="85399"> </a>Implements a simple subagent that manages a task table. </div><br></dl></dl></dl></dl></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85379">4.2.3  &nbsp;&nbsp;<b class="file">$WIND_BASE/target/src/snmpv1/mibs/</b></a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83674"> </a>The <b class="file">mibs</b> subdirectory contains additional MIB definitions that can be used to extend the SNMP agent.  Some of these files are used by <b class="file">snmpMib2.mib</b>.</p><dd><p class="Body"><a name="83675"> </a><b class="file">rfc1213.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1381.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1474.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1573b.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1694.mib <br>rfc1215.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1382.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1493.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1595.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1695.mib <br>rfc1231.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1389.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1512.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1604.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1696.mib <br>rfc1243.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1398.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1513.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1611.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1697.mib <br>rfc1253.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1406.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1514.mib&nbsp;&nbsp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&nbsp;&nbsp;rfc1565.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1658.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1757.mib <br>rfc1316.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1461.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1566.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1659.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1759.mib <br>rfc1317.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1471.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1567.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1660.mib <br>rfc1318.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1472.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1573.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1665.mib <br>rfc1354.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1473.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1573a.mib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc1666.mib</b></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-agent.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-agent1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent3.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 + -