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

📄 c-install2.html

📁 vxworks相关论文
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Installation   </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-install.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-install1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-install3.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="83445">2.2  &nbsp;&nbsp;Configuring VxWorks for Use with WindNet SNMPv1/v2c</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83449"> </a>Many WindNet SNMPv1/v2c facilities can be configured into VxWorks by defining the various configuration constants presented in this section. For a detailed discussion on different approaches to configuring WindNet SNMPv1/v2c, see <a href="c-config.html#83635"><i class="title">5.&nbsp;Configuring the WindNet SNMPv1/v2c Agent</i></a>.</p><dd><p class="Body"><a name="83456"> </a>The default location of these INCLUDE options is the EXCLUDED FACILITIES section of the configuration file <b class="file">$WIND_BASE/target/config/all/configAll.h</b>. To define them, move them to the INCLUDED FACILITIES section.</p></dl></dl><dl class="margin"><dd><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><a name="83664"><br></a><img border="0" alt="*" src="icons/note.gif">&nbsp;&nbsp;&nbsp;</td><td><div class="Note"><hr><b class="symbol_UC">NOTE: </b>VxWorks is not SNMP-capable unless you reconfigure <b class="file">configAll.h</b> and rebuild VxWorks as shown here.<hr></div></td></tr></table><dl class="margin"><dd><p class="Body"><a name="83663"> </a>For general information on configuring VxWorks, see the <i class="title">VxWorks Programmer's Guide: Configuration</i>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83457">2.2.1  &nbsp;&nbsp;Standard Included Facilities</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83462"> </a>The constants <b class="symbol_UC">INCLUDE_SNMPD</b> and <b class="symbol_UC">INCLUDE_MIB2_ALL</b>, listed in <a href="c-install2.html#83472">Table&nbsp;2-1</a>, configure VxWorks for running an SNMP agent that offers all MIB- II services. These are the default services shipped with the WindNet SNMPv1/v2c agent; you must configure VxWorks<p class="table"><h4 class="EntityTitle"><a name="83472"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 2-1:&nbsp;&nbsp;WindNet SNMPv1/v2c Configuration Constants</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="83476"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Constant</font></b></div></th><td width="10">&nbsp;</td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="83478"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Facility Included</font></b></div></th><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83480"> </a><b class="symbol_UC">INCLUDE_SNMPD</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83482"> </a>SNMP agent</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83484"> </a><b class="symbol_UC">INCLUDE_MIB2_ALL</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83486"> </a>All MIB-II groups</div></td><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p> to use these facilities by editing <b class="file">configAll.h</b> as shown.</p><dd><p class="Body"><a name="83491"> </a>WindNet SNMPv1/v2c features agent scalability. If you desire a configuration other than the default, you can rebuild the SNMP agent to support only the wanted MIB-II groups. If you do not need all of the provided MIB-II variables, you can define a subset by including or excluding variables by group (see <a href="c-config1.html#83461"><i class="title">5.1.2&nbsp;Scalability and MIB-II Facilities</i></a>).<p class="table"><h4 class="EntityTitle"><a name="83498"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 2-2:&nbsp;&nbsp;MIB-II Facilities Constants</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="83502"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Constant</font></b></div></th><td width="10">&nbsp;</td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="83504"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Facility Included</font></b></div></th><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83506"> </a><b class="symbol_UC">INCLUDE_MIB2_SYSTEM</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83508"> </a>MIB-II system group</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83510"> </a><b class="symbol_UC">INCLUDE_MIB2_IF</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83512"> </a>MIB-II interface group</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83514"> </a><b class="symbol_UC">INCLUDE_MIB2_AT</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83516"> </a>MIB-II AT group</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83518"> </a><b class="symbol_UC">INCLUDE_MIB2_IP</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83520"> </a>MIB-II IP group</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83522"> </a><b class="symbol_UC">INCLUDE_MIB2_ICMP</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83524"> </a>MIB-II ICMP group</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83526"> </a><b class="symbol_UC">INCLUDE_MIB2_UDP</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83528"> </a>MIB-II UDP group</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83530"> </a><b class="symbol_UC">INCLUDE_MIB2_TCP</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83532"> </a>MIB-II TCP group</div></td><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="83536"> </a>The WindNet SNMPv1/v2c agent is shipped with a default configuration that includes all MIB-II groups. (Note that this does <i class="emphasis">not</i> automatically configure VxWorks for SNMP; to use SNMPv1/v2c with VxWorks, you <i class="emphasis">must</i> define<b class="symbol_UC"> INCLUDE_MIB2_ALL</b> in <b class="file">configAll.h</b>.)</p><dd><p class="Body"><a name="83696"> </a>Because WindNet SNMPv1/v2c is a scalable product, you can include or exclude from the agent any of the MIB-II groups defined by the constants listed in <a href="c-install2.html#83498">Table&nbsp;2-2</a>.</p><dd><p class="Body"><a name="83543"> </a>For information about MIB-II VxWorks system interface routines, see the manual entry for <b class="library">m2Lib</b> in the <i class="title">VxWorks Reference Manual</i>. For sample method-routine code which corresponds to the MIB groups mentioned in <a href="c-install2.html#83498">Table&nbsp;2-2</a>, see <a href="c-agent2.html#83635"><i class="title">4.2.2&nbsp;$WIND_BASE/target/src/snmpv1/agent/</i></a>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83550">2.2.2  &nbsp;&nbsp;Standard Configuration Definitions</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83551"> </a>Default values for the configuration and MIB-II system group variables listed in <a href="c-install2.html#83558">Table&nbsp;2-3</a> are also provided in <b class="file">configAll.h</b>.<p class="table"><h4 class="EntityTitle"><a name="83558"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 2-3:&nbsp;&nbsp;WindNet SNMP Configuration Constants with Default Values</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="83562"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Constant</font></b></div></th><td width="10">&nbsp;</td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="83564"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Default Value</font></b></div></th><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83566"> </a><b class="symbol_UC">MIB2_SYS_DESCR</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83680"> </a><tt class="output">"VxWorks SNMPv1/v2c Agent"</tt></div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83570"> </a><b class="symbol_UC">MIB2_SYS_CONTACT</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83682"> </a><tt class="output">"Wind River Systems"</tt></div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83574"> </a><b class="symbol_UC">MIB2_SYS_LOCATION</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83684"> </a><tt class="output">"Planet Earth"</tt></div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83578"> </a><b class="symbol_UC">MIB2_SYS_OBJID_LEN</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83686"> </a><tt class="output">2</tt></div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83582"> </a><b class="symbol_UC">MIB2_SYS_OBJID</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83688"> </a><tt class="output">{ 0, 0 }</tt></div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83586"> </a><b class="symbol_UC">SNMP_TRACE_LEVEL</b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="83690"> </a><tt class="output">0</tt></div></td><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p> </p><dd><p class="Body"><a name="83589"> </a>The MIB-II system group variables defined in <b class="file">configAll.h </b>initialize the MIB-II system group in the agent. Their values can be modified to customize the agent (see <a href="c-config1.html#83530"><i class="title">5.1.3&nbsp;Standard Configuration Definitions</i></a>).</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83593">2.2.3  &nbsp;&nbsp;Enabling Agent Debugging</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83597"> </a>WindNet SNMPv1/v2c has the capability to trace message traffic and output this data as debugging information. To enable tracing on the agent, set the configuration constant <b class="symbol_UC">SNMP_TRACE_LEVEL</b> (in<b class="file"> configAll.h</b>) to indicate a level of verbosity,<b> </b>then rebuild VxWorks. For information on different message-tracing levels, see <a href="c-config1.html#83530"><i class="title">5.1.3&nbsp;Standard Configuration Definitions</i></a>.</p><dd><p class="Body"><a name="83601"> </a>Once the tracing facility is operational, output messages appear on the target console window each time an SNMP message is received or transmitted.</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-install.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-install1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-install3.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 + -