2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2002-11-22 17:33:19 +00:00
|
|
|
<!-- $Revision: 1.5 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<reference id="ref.snmp">
|
|
|
|
<title>SNMP functions</title>
|
|
|
|
<titleabbrev>SNMP</titleabbrev>
|
|
|
|
|
|
|
|
<partintro>
|
2002-08-07 10:04:58 +00:00
|
|
|
<section id="snmp.intro">
|
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
2002-08-09 10:26:12 +00:00
|
|
|
<section id="snmp.requirements">
|
2002-08-07 10:04:58 +00:00
|
|
|
&reftitle.required;
|
|
|
|
<para>
|
|
|
|
In order to use the SNMP functions on Unix you need to install the
|
|
|
|
<ulink url="&url.ucd-snmp;">UCD SNMP</ulink> package. On Windows these
|
|
|
|
functions are only available on NT and not on Win95/98.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="snmp.installation">
|
|
|
|
&reftitle.install;
|
|
|
|
<para>
|
|
|
|
Important: In order to use the UCD SNMP package, you need to define
|
|
|
|
NO_ZEROLENGTH_COMMUNITY to 1 before compiling it. After configuring UCD
|
|
|
|
SNMP, edit config.h and search for NO_ZEROLENGTH_COMMUNITY. Uncomment the
|
|
|
|
#define line. It should look like this afterwards:
|
|
|
|
<programlisting role="c">
|
2002-04-15 00:12:54 +00:00
|
|
|
<![CDATA[
|
|
|
|
#define NO_ZEROLENGTH_COMMUNITY 1
|
|
|
|
]]>
|
2002-08-07 10:04:58 +00:00
|
|
|
</programlisting>
|
|
|
|
Now compile PHP <option role="configure">--with-snmp[=DIR]</option>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
If you see strange segmentation faults in combination with SNMP commands,
|
|
|
|
you did not follow the above instructions. If you do not want to recompile
|
|
|
|
UCD SNMP, you can compile PHP with the
|
|
|
|
<option role="configure">--enable-ucd-snmp-hack</option> switch which
|
|
|
|
will work around the misfeature.
|
|
|
|
</para>
|
2002-11-22 17:33:19 +00:00
|
|
|
<para>
|
|
|
|
The Windows distribution contains support files for SNMP in the
|
|
|
|
<filename>mibs</filename> directory. This directory should be moved
|
|
|
|
to <filename>DRIVE:\usr\mibs</filename>, where DRIVE must be replaced
|
|
|
|
with the driveletter where <literal>PHP</literal> is installed on, e.g.:
|
|
|
|
<filename>c:\usr\mibs</filename>.
|
|
|
|
</para>
|
2002-08-07 10:04:58 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="snmp.configuration">
|
|
|
|
&reftitle.runtime;
|
|
|
|
&no.config;
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="snmp.resources">
|
|
|
|
&reftitle.resources;
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="snmp.constants">
|
|
|
|
&reftitle.constants;
|
|
|
|
&no.constants;
|
|
|
|
</section>
|
|
|
|
|
2002-04-15 00:12:54 +00:00
|
|
|
</partintro>
|
|
|
|
|
|
|
|
&reference.snmp.functions;
|
|
|
|
|
|
|
|
</reference>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|
|
|
|
|