svn: /phpdoc/en/trunk/reference/snmp/ snmp/construct.xml snmp.xml

From: Date: Sat, 20 Aug 2011 16:24:18 +0000
Subject: svn: /phpdoc/en/trunk/reference/snmp/ snmp/construct.xml snmp.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8654@lists.php.net to get a copy of this message
lytboris Sat, 20 Aug 2011 16:24:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=315238 Log: document FR #55312, #42918 Bugs: https://bugs.php.net/55312 (Wont fix) Please change SNMP::VERSION_ constants to sensible values https://bugs.php.net/42918 (Assigned) IPv6 addresses not supported in SNMP extension Changed paths: U phpdoc/en/trunk/reference/snmp/snmp/construct.xml U phpdoc/en/trunk/reference/snmp/snmp.xml Modified: phpdoc/en/trunk/reference/snmp/snmp/construct.xml =================================================================== --- phpdoc/en/trunk/reference/snmp/snmp/construct.xml 2011-08-20 16:10:48 UTC (rev 315237) +++ phpdoc/en/trunk/reference/snmp/snmp/construct.xml 2011-08-20 16:24:18 UTC (rev 315238) @@ -30,7 +30,10 @@ <term><parameter>version</parameter></term> <listitem> <para> - <acronym>SNMP</acronym> protocol version + <acronym>SNMP</acronym> protocol version: + <constant>SNMP::VERSION_1</constant>, + <constant>SNMP::VERSION_2C</constant>, + <constant>SNMP::VERSION_3</constant>. </para> </listitem> </varlistentry> @@ -38,7 +41,27 @@ <term><parameter>hostname</parameter></term> <listitem> <para> - The <acronym>SNMP</acronym> agent. + The <acronym>SNMP</acronym> agent. <parameter>hostname</parameter> may be suffixed with + optional <acronym>SNMP</acronym> agent port after colon. IPv6 addresses must be enclosed in square + brackets if used with port. If FQDN is used for <parameter>hostname</parameter> + it will be resolved by php-snmp library, not by Net-SNMP engine. Usage + of IPv6 addresses when specifying FQDN may be forced by enclosing FQDN + into square brackets. Here it is some examples: + <table> + <title></title> + <tgroup cols="2"> + <tbody> + <row><entry>IPv4 with default port</entry><entry>127.0.0.1</entry></row> + <row><entry>IPv6 with default port</entry><entry>::1 or [::1]</entry></row> + <row><entry>IPv4 with specific port</entry><entry>127.0.0.1:1161</entry></row> + <row><entry>IPv6 with specific port</entry><entry>[::1]:1161</entry></row> + <row><entry>FQDN with default port</entry><entry>host.domain</entry></row> + <row><entry>FQDN with specific port</entry><entry>host.domain:1161</entry></row> + <row><entry>FQDN with default port, force usage of IPv6 address</entry><entry>[host.domain]</entry></row> + <row><entry>FQDN with specific port, force usage of IPv6 address</entry><entry>[host.domain]:1161</entry></row> + </tbody> + </tgroup> + </table> </para> </listitem> </varlistentry> Modified: phpdoc/en/trunk/reference/snmp/snmp.xml =================================================================== --- phpdoc/en/trunk/reference/snmp/snmp.xml 2011-08-20 16:10:48 UTC (rev 315237) +++ phpdoc/en/trunk/reference/snmp/snmp.xml 2011-08-20 16:24:18 UTC (rev 315238) @@ -119,29 +119,25 @@ <fieldsynopsis> <modifier>const</modifier> <type>integer</type> - <varname - linkend="snmp.class.constants.version_1">SNMP::VERSION_1</varname> + <varname linkend="snmp.class.constants.version_1">SNMP::VERSION_1</varname> <initializer>0</initializer> </fieldsynopsis> <fieldsynopsis> <modifier>const</modifier> <type>integer</type> - <varname - linkend="snmp.class.constants.version_2c">SNMP::VERSION_2C</varname> + <varname linkend="snmp.class.constants.version_2c">SNMP::VERSION_2C</varname> <initializer>1</initializer> </fieldsynopsis> <fieldsynopsis> <modifier>const</modifier> <type>integer</type> - <varname - linkend="snmp.class.constants.version_2c">SNMP::VERSION_2c</varname> + <varname linkend="snmp.class.constants.version_2c">SNMP::VERSION_2c</varname> <initializer>1</initializer> </fieldsynopsis> <fieldsynopsis> <modifier>const</modifier> <type>integer</type> - <varname - linkend="snmp.class.constants.version_3">SNMP::VERSION_3</varname> + <varname linkend="snmp.class.constants.version_3">SNMP::VERSION_3</varname> <initializer>3</initializer> </fieldsynopsis>

« previous php.doc.cvs (#8654) next »