php-doc-en/reference/snmp/reference.xml

95 lines
2.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<reference id="ref.snmp">
<title>SNMP functions</title>
<titleabbrev>SNMP</titleabbrev>
<partintro>
<section id="snmp.intro">
&reftitle.intro;
<para>
</para>
</section>
<section id="snmp.requirements">
&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">
<![CDATA[
#define NO_ZEROLENGTH_COMMUNITY 1
]]>
</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>
<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>
</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>
</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
-->