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

📄 c-sub_agents2.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>    SNMP Distributed Agents   </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-sub_agents.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-sub_agents1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-sub_agents3.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="89136">7.2  &nbsp;&nbsp;Configuring WindNet SNMP to Support Subagents</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89142"> </a>To include support for subagents in WindNet SNMP, edit the <b class="file">subInstall.h</b> file (shipped in <b class="file">h/snmp</b>) and make sure that it defines <b class="symbol_UC">INSTALL_MASTER_SUBAGENT</b>. This define has configuration consequences for <b class="file">snmpIoLib.c</b>, <b class="file">saIoLib.c</b>, and <b class="file">masterIoLib.c</b>. </p></dl><dl class="margin"><b class="HU-bullet"><li><a name="89143"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">snmpIoLib.c </font></li></b></dl><dl class="margin"><dd><p class="Body"><a name="89165"> </a>If <b class="symbol_UC">INSTALL_MASTER_SUBAGENT </b>is defined, <b class="file">snmpIoLib.c</b> includes <b class="file">ipcLib.h</b> and <b class="file">subagentLib.h</b>. Both of these include files are required to support subagents. In addition, <b class="file">snmpIoLib.c</b> includes the lines: </p><dl class="margin"><dd><pre class="Code2"><b><a name="89252">#if INSTALL_MASTER_SUBAGENT if (masterIoInit () == ERROR) &nbsp;&nbsp;&nbsp;&nbsp;printf ("Error: Could not initialize master IPC \n"); #endif</a></b></pre></dl><dd><p class="Body"><a name="89399"> </a>and </p><dl class="margin"><dd><pre class="Code2"><b><a name="89402">#if INSTALL_MASTER_SUBAGENT masterQueCleanup (); #endif</a></b></pre></dl><dd><p class="Body"><a name="89099"> </a>The call to <b class="routine"><i class="routine">masterIoInit</i></b><b>(&nbsp;)</b> is essential to setting up the master-agent side of the IPC mechanism used to communicate with subagents. Enabling the call to <b class="routine"><i class="routine">masterQueCleanup</i></b><b>(&nbsp;)</b> lets WindNet SNMP free the resources allocated by the previous call to <b class="routine"><i class="routine">masterIoInit</i></b><b>(&nbsp;)</b>. </p></dl><dl class="margin"><b class="HU-bullet"><li><a name="89352"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">saIoLib.c and masterIoLib.c</font></li></b></dl><dl class="margin"><dd><p class="Body"><a name="89353"> </a>All the functions defined in these files are excluded from WindNet SNMP if <b class="symbol_UC">INSTALL_MASTER_SUBAGENT</b> is undefined. </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-sub_agents.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-sub_agents1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-sub_agents3.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 + -