📄 c-agent2.html
字号:
</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 <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 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"> </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. 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 <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 rfc1381.mib rfc1474.mib rfc1573b.mib rfc1694.mib <br>rfc1215.mib rfc1382.mib rfc1493.mib rfc1595.mib rfc1695.mib <br>rfc1231.mib rfc1389.mib rfc1512.mib rfc1604.mib rfc1696.mib <br>rfc1243.mib rfc1398.mib rfc1513.mib rfc1611.mib rfc1697.mib <br>rfc1253.mib rfc1406.mib rfc1514.mib rfc1612.mib rfc1724.mib <br>rfc1269.mib rfc1407.mib rfc1515.mib rfc1628.mib rfc1742.mib <br>rfc1271.mib rfc1414.mib rfc1516.mib rfc1643.mib rfc1747.mib <br>rfc1285.mib rfc1447.mib rfc1525.mib rfc1650.mib rfc1748.mib <br>rfc1304.mib rfc1450.mib rfc1559.mib rfc1657.mib rfc1749.mib <br>rfc1315.mib rfc1451.mib rfc1565.mib rfc1658.mib rfc1757.mib <br>rfc1316.mib rfc1461.mib rfc1566.mib rfc1659.mib rfc1759.mib <br>rfc1317.mib rfc1471.mib rfc1567.mib rfc1660.mib <br>rfc1318.mib rfc1472.mib rfc1573.mib rfc1665.mib <br>rfc1354.mib rfc1473.mib rfc1573a.mib 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 + -