Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 3140

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>SNMP functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Function Reference"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="swf_viewport"
HREF="function.swf-viewport.html"><LINK
REL="NEXT"
TITLE="snmp_get_quick_print"
HREF="function.snmp-get-quick-print.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.swf-viewport.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.snmp-get-quick-print.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.snmp"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>XCVI. SNMP functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN86528"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="snmp.intro"
></A
>Introduction</H1
><P
>&#13;    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="snmp.requirements"
></A
>Requirements</H1
><P
>&#13;     In order to use the SNMP functions on Unix you need to install the
     <A
HREF="http://net-snmp.sourceforge.net/"
TARGET="_top"
>UCD SNMP</A
> package. On Windows these
     functions are only available on NT and not on Win95/98.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="snmp.installation"
></A
>Installation</H1
><P
>&#13;  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 <TT
CLASS="filename"
>config.h</TT
> and search for
  NO_ZEROLENGTH_COMMUNITY. Uncomment the #define line. It should look like
  this afterwards:
  <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="c"
>#define NO_ZEROLENGTH_COMMUNITY 1</PRE
></TD
></TR
></TABLE
>
  Now compile PHP <TT
CLASS="option"
>--with-snmp[=DIR]</TT
>.
 </P
><P
>&#13;  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 
  <TT
CLASS="option"
>--enable-ucd-snmp-hack</TT
> switch which
  will work around the misfeature.
 </P
><P
>&#13;  The Windows distribution contains support files for SNMP in the
  <TT
CLASS="filename"
>mibs</TT
> directory. This directory should be moved
  to <TT
CLASS="filename"
>DRIVE:\usr\mibs</TT
>, where DRIVE must be replaced
  with the driveletter where <TT
CLASS="literal"
>PHP</TT
> is installed on, e.g.:
  <TT
CLASS="filename"
>c:\usr\mibs</TT
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="snmp.configuration"
></A
>Runtime Configuration</H1
><P
>This extension has no configuration directives defined in <TT
CLASS="filename"
>php.ini</TT
>.</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="snmp.resources"
></A
>Resource Types</H1
><P
>&#13;    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="snmp.constants"
></A
>Predefined Constants</H1
><P
>This extension has no constants defined.</P
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="function.snmp-get-quick-print.html"
>snmp_get_quick_print</A
>&nbsp;--&nbsp;Fetch the current value of the UCD library's quick_print setting
    </DT
><DT
><A
HREF="function.snmp-set-quick-print.html"
>snmp_set_quick_print</A
>&nbsp;--&nbsp;Set the value of quick_print within the UCD SNMP library
    </DT
><DT
><A
HREF="function.snmpget.html"
>snmpget</A
>&nbsp;--&nbsp;Fetch an SNMP object</DT
><DT
><A
HREF="function.snmprealwalk.html"
>snmprealwalk</A
>&nbsp;--&nbsp;
     Return all objects including their respective object ID within the specified one
    </DT
><DT
><A
HREF="function.snmpset.html"
>snmpset</A
>&nbsp;--&nbsp;Set an SNMP object</DT
><DT
><A
HREF="function.snmpwalk.html"
>snmpwalk</A
>&nbsp;--&nbsp;Fetch all the SNMP objects from an agent</DT
><DT
><A
HREF="function.snmpwalkoid.html"
>snmpwalkoid</A
>&nbsp;--&nbsp;Query for a tree of information about a network entity
    </DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.swf-viewport.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.snmp-get-quick-print.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>swf_viewport</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>snmp_get_quick_print</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>