2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2002-04-15 21:57:31 +00:00
|
|
|
<!-- $Revision: 1.2 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<reference id="ref.snmp">
|
|
|
|
<title>SNMP functions</title>
|
|
|
|
<titleabbrev>SNMP</titleabbrev>
|
|
|
|
|
|
|
|
<partintro>
|
|
|
|
<simpara>
|
|
|
|
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.
|
|
|
|
</simpara>
|
|
|
|
|
|
|
|
<simpara>
|
|
|
|
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:
|
|
|
|
</simpara>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<programlisting role="c">
|
|
|
|
<![CDATA[
|
|
|
|
#define NO_ZEROLENGTH_COMMUNITY 1
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<simpara>
|
|
|
|
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 --enable-ucd-snmp-hack switch which
|
|
|
|
will work around the misfeature.
|
|
|
|
</simpara>
|
|
|
|
|
|
|
|
</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
|
|
|
|
-->
|
|
|
|
|