cvs: phpdoc-zh /reference/snmp/functions snmp-get-quick-print.xml snmp-set-quick-print.xml snmprealwalk.xml snmpset.xml snmpwalk.xml snmpwalkoid.xml
| From: | Krazy Nio | Date: | Sat, 30 Aug 2003 12:59:11 +0000 |
| Subject: | cvs: phpdoc-zh /reference/snmp/functions snmp-get-quick-print.xml snmp-set-quick-print.xml snmprealwalk.xml snmpset.xml snmpwalk.xml snmpwalkoid.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1690@lists.php.net to get a copy of this message | ||
nio Sat Aug 30 08:59:11 2003 EDT
Added files:
/phpdoc-zh/reference/snmp/functions snmp-get-quick-print.xml
snmp-set-quick-print.xml
snmprealwalk.xml snmpset.xml
snmpwalk.xml snmpwalkoid.xml
Log:
Add file.
Index: phpdoc-zh/reference/snmp/functions/snmp-get-quick-print.xml +++ phpdoc-zh/reference/snmp/functions/snmp-get-quick-print.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmp-get-quick-print"> <refnamediv> <refname>snmp_get_quick_print</refname> <refpurpose> ·µ»Ø UCD ¿âÖÐ quick_print ÉèÖõĵ±Ç°Öµ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>snmp_get_quick_print</methodname> <void/> </methodsynopsis> <para> ·µ»Ø±£´æÔÚ UCD ¿âÖÐ quick_print µÄµ±Ç°Öµ¡£Ä¬ÈÏÇé¿öÏ quick_print Ϊ off¡£ <example> <title><function>snmp_get_quick_print</function> ʾÀý</title> <programlisting role="php"> <![CDATA[ <?php $quickprint = snmp_get_quick_print(); ?> ]]> </programlisting> </example> </para> <para> Èç¹û quick_print Ϊ off£¬Éϱߵĺ¯Êýµ÷Óý«·µ»Ø &false;£¬¶øÈç¹û quick_print Ϊ on£¬Ôò·µ»Ø &true;¡£ </para> <para> <function>snmp_get_quick_print</function> ½öÔÚʹÓÃÁË UCD SNMP ¿âʱ²Å¿ÉÓᣵ±Ê¹Óà Windows SNMP ¿âʱ£¬´Ëº¯Êý²»¿ÉÓᣠ</para> <para> ²Î¼û <function>snmp_set_quick_print</function> ²é¿´ quick_print µÄÏêϸ˵Ã÷¡£ </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmp-set-quick-print.xml +++ phpdoc-zh/reference/snmp/functions/snmp-set-quick-print.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmp-set-quick-print"> <refnamediv> <refname>snmp_set_quick_print</refname> <refpurpose> ÉèÖà UCD SNMP ¿âÖÐ quick_print µÄÖµ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>void</type><methodname>snmp_set_quick_print</methodname> <methodparam><type>bool</type><parameter>quick_print</parameter></methodparam> </methodsynopsis> <para> ÉèÖà UCD SNMP ¿âÖÐ quick_print µÄÖµ¡£µ±´ËÖµ±»ÉèÖã¨1£©£¬SNMP ¿â½«·µ»Ø¡®¿ìËÙ´òÓ¡¡¯Öµ¡£ÕâÒâζ׎«Ö»´òÓ¡Öµ¡£µ± quick_print ±»½ûÓÃʱ£¨´ËΪĬÈÏÇé¿ö£©£¬UCD SNMP ¿â½«´òÓ¡³ö¶îÍâÐÅÏ¢£¬°üÀ¨ÖµµÄÀàÐÍ£¨Èç IpAddress »ò OID£©¡£´ËÍ⣬Èç¹û quick_print ÊǽûÓõģ¬UCD SNMP ¿â½«ÎªËùÓÐ×Ö·û´®¶îÍâ´òÓ¡³öÈý¸ö»ò¸üÉÙ×Ö·ûµÄÊ®Áù½øÖÆÖµ¡£ </para> <para> µ±ÐèҪʹÓ÷µ»ØµÄÐÅÏ¢¶ø²»ÊÇÏÔʾËüʱ£¬¾³£»áÓõ½ÉèÖà quick_print¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php snmp_set_quick_print(0); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a<BR>\n"; snmp_set_quick_print(1); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a<BR>\n"; ?> ]]> </programlisting> </informalexample> </para> <para> µÚÒ»¸ö´òÓ¡³öÀ´µÄÖµ¿ÉÄÜʱ£º'Timeticks: (0) 0:00:00.00'£¬È»¶øµ±ÉèÖÃÁË quick_print Ö®ºó£¬Ö»ÊÇ´òÓ¡ '0:00:00.00'¡£ </para> <para> ĬÈÏÇé¿öÏ UCD SNMP ¿â·µ»ØÈßÓàµÄÖµ£¬¶ø quick_print ÔòÓÃÀ´Ö»·µ»ØÖµ¡£ </para> <para> ÏÖʱ£¬×Ö·û´®ÒÀÈ»·µ»Ø¶îÍâµÄÒýºÅ£¬Õ⽫»áÔÚºóÐø·¢ÐаæÖиüÕý¡£ </para> <para> <function>snmp_set_quick_print</function> ½öÔÚʹÓÃÁË UCD SNMP ¿âʱ²Å¿ÉÓᣵ±Ê¹Óà Windows SNMP ¿âʱ£¬´Ëº¯Êý²»¿ÉÓᣠ</para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmprealwalk.xml +++ phpdoc-zh/reference/snmp/functions/snmprealwalk.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.20 --> <refentry id='function.snmprealwalk'> <refnamediv> <refname>snmprealwalk</refname> <refpurpose> ·µ»ØÖ¸¶¨µÄËùÓжÔÏ󣬰üÀ¨ËüÃǸ÷×ԵĶÔÏó ID </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>snmprealwalk</methodname> <methodparam><type>string</type><parameter>host</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmpset.xml +++ phpdoc-zh/reference/snmp/functions/snmpset.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpset"> <refnamediv> <refname>snmpset</refname> <refpurpose>ÉèÖÃÒ»¸ö SNMP ¶ÔÏó</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>snmpset</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam><type>string</type><parameter>type</parameter></methodparam> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> ÉèÖÃÖ¸¶¨µÄ SNMP ¶ÔÏóµÄÖµ£¬³É¹¦·µ»Ø &true;£¬´íÎóÔò·µ»Ø &false;¡£ </para> <para> º¯Êý <function>snmpset</function> ÓÃÓÚÉèÖÃÓÉ <parameter>object_id</parameter> Ö¸¶¨µÄ SNMP ¶ÔÏóµÄÖµ¡£<parameter>hostname</parameter> Ö¸¶¨ SNMP ´úÀí£¬¶ø <parameter>community</parameter> ²ÎÊýÖ¸¶¨¾ßÓжÁȨÏÞµÄÓò¡£ </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmpwalk.xml +++ phpdoc-zh/reference/snmp/functions/snmpwalk.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpwalk"> <refnamediv> <refname>snmpwalk</refname> <refpurpose>´Ó´úÀí·µ»ØËùÓÐµÄ SNMP ¶ÔÏó</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>snmpwalk</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÓÉ <parameter>object_id</parameter> ×÷Ϊ¸ùµÄ SNMP ¶ÔÏóÖµËù×é³ÉµÄÊý×飬´íÎóÔò·µ»Ø &false;¡£ </para> <para> <function>snmpwalk</function> º¯ÊýÊÇÓÃÀ´¶ÁÈ¡ËùÓÐÓÉ <parameter>hostname</parameter> Ö¸¶¨µÄ SNMP ´úÀíµÄÖµ¡£<parameter>Community</parameter> Ö¸¶¨¸Ã´úÀíÖоßÓжÁȨÏÞµÄÓò¡£Ò»¸öΪ &null; µÄ <parameter>object_id</parameter> ½«±»¿´×÷ SNMP ¶ÔÏóÊ÷µÄ¸ù£¬¶øÔÚ´ËÊ÷ϵÄËùÓжÔÏó½«×÷Ϊһ¸öÊý×é±»·µ»Ø¡£Èç¹ûÖ¸¶¨ÁË <parameter>object_id</parameter>£¬Ôò·µ»ØËùÓÐÔÚ <parameter>object_id</parameter> Ï嵀 SNMP ¶ÔÏó¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php $a = snmpwalk("127.0.0.1", "public", ""); ?> ]]> </programlisting> </informalexample> </para> <para> Éϱߵĺ¯Êýµ÷Óý«´ÓÔËÐÐÓÚ±¾»úµÄ SNMP ´úÀíÄÇÀï·µ»ØËùÓÐµÄ SNMP ¶ÔÏ󡣿ÉʹÓÃÑ»·±éÀúÕâЩֵ¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php for ($i=0; $i < count($a); $i++) { echo $a[$i]; } ?> ]]> </programlisting> </informalexample> </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmpwalkoid.xml +++ phpdoc-zh/reference/snmp/functions/snmpwalkoid.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpwalkoid"> <refnamediv> <refname>snmpwalkoid</refname> <refpurpose>²éѯ¹ØÓÚÍøÂçʵÌåµÄÐÅÏ¢Ê÷ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>snmpwalkoid</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÒ»¸ö°üº¬¶ÔÏó id ¼°ËüÃǸ÷×Ô¶ÔÏóÖµµÄ¹ØÁªÊý×飬ÕâЩ¶ÔÏóÒÔ <parameter>object_id</parameter> ×÷Ϊ¸ù£¬´íÎóÔò·µ»Ø &false;¡£ </para> <para> <function>snmpwalkoid</function> ÓÃÓÚ´Ó <parameter>hostname</parameter> ËùÖ¸¶¨µÄ SNMP ´úÀíÄÇÀï¶ÁÈ¡ËùÓжÔÏó id ¼°ËüÃǸ÷×ÔµÄÖµ¡£<parameter>community</parameter> Ö¸¶¨¶ÔÓڸôúÀíÓжÁȨÏÞµÄÓò¡£Ò»¸öΪ &null; µÄ <parameter>object_id</parameter> ½«±»¿´×÷ SNMP ¶ÔÏóÊ÷µÄ¸ù£¬¶øÔÚ´ËÊ÷ϵÄËùÓжÔÏó½«×÷Ϊһ¸öÊý×é±»·µ»Ø¡£Èç¹ûÖ¸¶¨ÁË <parameter>object_id</parameter>£¬Ôò·µ»ØËùÓÐÔÚ <parameter>object_id</parameter> Ï嵀 SNMP ¶ÔÏó¡£ </para> <para> <function>snmpwalkoid</function> ºÍ <function>snmpwalk</function> µÄͬʱ´æÔÚ³öÓÚÀúÊ·ÔÒò¡£ÌṩÁ½¸öº¯ÊýÊÇΪÁËÏòºó¼æÈÝ¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php $a = snmpwalkoid("127.0.0.1", "public", ""); ?> ]]> </programlisting> </informalexample> </para> <para> Éϱߵĺ¯Êýµ÷Óý«´ÓÔËÐÐÓÚ±¾»úµÄ SNMP ´úÀíÄÇÀï·µ»ØËùÓÐµÄ SNMP ¶ÔÏ󡣿ÉʹÓÃÑ»·±éÀúÕâЩֵ¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php for (reset($a); $i = key($a); next($a)) { echo "$i: $a[$i]<br>\n"; } ?> ]]> </programlisting> </informalexample> </para> </refsect1> </refentry> <!-- 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 -->
Index: phpdoc-zh/reference/snmp/functions/snmp-get-quick-print.xml +++ phpdoc-zh/reference/snmp/functions/snmp-get-quick-print.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmp-get-quick-print"> <refnamediv> <refname>snmp_get_quick_print</refname> <refpurpose> ·µ»Ø UCD ¿âÖÐ quick_print ÉèÖõĵ±Ç°Öµ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>snmp_get_quick_print</methodname> <void/> </methodsynopsis> <para> ·µ»Ø±£´æÔÚ UCD ¿âÖÐ quick_print µÄµ±Ç°Öµ¡£Ä¬ÈÏÇé¿öÏ quick_print Ϊ off¡£ <example> <title><function>snmp_get_quick_print</function> ʾÀý</title> <programlisting role="php"> <![CDATA[ <?php $quickprint = snmp_get_quick_print(); ?> ]]> </programlisting> </example> </para> <para> Èç¹û quick_print Ϊ off£¬Éϱߵĺ¯Êýµ÷Óý«·µ»Ø &false;£¬¶øÈç¹û quick_print Ϊ on£¬Ôò·µ»Ø &true;¡£ </para> <para> <function>snmp_get_quick_print</function> ½öÔÚʹÓÃÁË UCD SNMP ¿âʱ²Å¿ÉÓᣵ±Ê¹Óà Windows SNMP ¿âʱ£¬´Ëº¯Êý²»¿ÉÓᣠ</para> <para> ²Î¼û <function>snmp_set_quick_print</function> ²é¿´ quick_print µÄÏêϸ˵Ã÷¡£ </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmp-set-quick-print.xml +++ phpdoc-zh/reference/snmp/functions/snmp-set-quick-print.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmp-set-quick-print"> <refnamediv> <refname>snmp_set_quick_print</refname> <refpurpose> ÉèÖà UCD SNMP ¿âÖÐ quick_print µÄÖµ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>void</type><methodname>snmp_set_quick_print</methodname> <methodparam><type>bool</type><parameter>quick_print</parameter></methodparam> </methodsynopsis> <para> ÉèÖà UCD SNMP ¿âÖÐ quick_print µÄÖµ¡£µ±´ËÖµ±»ÉèÖã¨1£©£¬SNMP ¿â½«·µ»Ø¡®¿ìËÙ´òÓ¡¡¯Öµ¡£ÕâÒâζ׎«Ö»´òÓ¡Öµ¡£µ± quick_print ±»½ûÓÃʱ£¨´ËΪĬÈÏÇé¿ö£©£¬UCD SNMP ¿â½«´òÓ¡³ö¶îÍâÐÅÏ¢£¬°üÀ¨ÖµµÄÀàÐÍ£¨Èç IpAddress »ò OID£©¡£´ËÍ⣬Èç¹û quick_print ÊǽûÓõģ¬UCD SNMP ¿â½«ÎªËùÓÐ×Ö·û´®¶îÍâ´òÓ¡³öÈý¸ö»ò¸üÉÙ×Ö·ûµÄÊ®Áù½øÖÆÖµ¡£ </para> <para> µ±ÐèҪʹÓ÷µ»ØµÄÐÅÏ¢¶ø²»ÊÇÏÔʾËüʱ£¬¾³£»áÓõ½ÉèÖà quick_print¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php snmp_set_quick_print(0); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a<BR>\n"; snmp_set_quick_print(1); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a<BR>\n"; ?> ]]> </programlisting> </informalexample> </para> <para> µÚÒ»¸ö´òÓ¡³öÀ´µÄÖµ¿ÉÄÜʱ£º'Timeticks: (0) 0:00:00.00'£¬È»¶øµ±ÉèÖÃÁË quick_print Ö®ºó£¬Ö»ÊÇ´òÓ¡ '0:00:00.00'¡£ </para> <para> ĬÈÏÇé¿öÏ UCD SNMP ¿â·µ»ØÈßÓàµÄÖµ£¬¶ø quick_print ÔòÓÃÀ´Ö»·µ»ØÖµ¡£ </para> <para> ÏÖʱ£¬×Ö·û´®ÒÀÈ»·µ»Ø¶îÍâµÄÒýºÅ£¬Õ⽫»áÔÚºóÐø·¢ÐаæÖиüÕý¡£ </para> <para> <function>snmp_set_quick_print</function> ½öÔÚʹÓÃÁË UCD SNMP ¿âʱ²Å¿ÉÓᣵ±Ê¹Óà Windows SNMP ¿âʱ£¬´Ëº¯Êý²»¿ÉÓᣠ</para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmprealwalk.xml +++ phpdoc-zh/reference/snmp/functions/snmprealwalk.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.20 --> <refentry id='function.snmprealwalk'> <refnamediv> <refname>snmprealwalk</refname> <refpurpose> ·µ»ØÖ¸¶¨µÄËùÓжÔÏ󣬰üÀ¨ËüÃǸ÷×ԵĶÔÏó ID </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>snmprealwalk</methodname> <methodparam><type>string</type><parameter>host</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmpset.xml +++ phpdoc-zh/reference/snmp/functions/snmpset.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpset"> <refnamediv> <refname>snmpset</refname> <refpurpose>ÉèÖÃÒ»¸ö SNMP ¶ÔÏó</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>snmpset</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam><type>string</type><parameter>type</parameter></methodparam> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> ÉèÖÃÖ¸¶¨µÄ SNMP ¶ÔÏóµÄÖµ£¬³É¹¦·µ»Ø &true;£¬´íÎóÔò·µ»Ø &false;¡£ </para> <para> º¯Êý <function>snmpset</function> ÓÃÓÚÉèÖÃÓÉ <parameter>object_id</parameter> Ö¸¶¨µÄ SNMP ¶ÔÏóµÄÖµ¡£<parameter>hostname</parameter> Ö¸¶¨ SNMP ´úÀí£¬¶ø <parameter>community</parameter> ²ÎÊýÖ¸¶¨¾ßÓжÁȨÏÞµÄÓò¡£ </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmpwalk.xml +++ phpdoc-zh/reference/snmp/functions/snmpwalk.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpwalk"> <refnamediv> <refname>snmpwalk</refname> <refpurpose>´Ó´úÀí·µ»ØËùÓÐµÄ SNMP ¶ÔÏó</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>snmpwalk</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÓÉ <parameter>object_id</parameter> ×÷Ϊ¸ùµÄ SNMP ¶ÔÏóÖµËù×é³ÉµÄÊý×飬´íÎóÔò·µ»Ø &false;¡£ </para> <para> <function>snmpwalk</function> º¯ÊýÊÇÓÃÀ´¶ÁÈ¡ËùÓÐÓÉ <parameter>hostname</parameter> Ö¸¶¨µÄ SNMP ´úÀíµÄÖµ¡£<parameter>Community</parameter> Ö¸¶¨¸Ã´úÀíÖоßÓжÁȨÏÞµÄÓò¡£Ò»¸öΪ &null; µÄ <parameter>object_id</parameter> ½«±»¿´×÷ SNMP ¶ÔÏóÊ÷µÄ¸ù£¬¶øÔÚ´ËÊ÷ϵÄËùÓжÔÏó½«×÷Ϊһ¸öÊý×é±»·µ»Ø¡£Èç¹ûÖ¸¶¨ÁË <parameter>object_id</parameter>£¬Ôò·µ»ØËùÓÐÔÚ <parameter>object_id</parameter> Ï嵀 SNMP ¶ÔÏó¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php $a = snmpwalk("127.0.0.1", "public", ""); ?> ]]> </programlisting> </informalexample> </para> <para> Éϱߵĺ¯Êýµ÷Óý«´ÓÔËÐÐÓÚ±¾»úµÄ SNMP ´úÀíÄÇÀï·µ»ØËùÓÐµÄ SNMP ¶ÔÏ󡣿ÉʹÓÃÑ»·±éÀúÕâЩֵ¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php for ($i=0; $i < count($a); $i++) { echo $a[$i]; } ?> ]]> </programlisting> </informalexample> </para> </refsect1> </refentry> <!-- 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 --> Index: phpdoc-zh/reference/snmp/functions/snmpwalkoid.xml +++ phpdoc-zh/reference/snmp/functions/snmpwalkoid.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpwalkoid"> <refnamediv> <refname>snmpwalkoid</refname> <refpurpose>²éѯ¹ØÓÚÍøÂçʵÌåµÄÐÅÏ¢Ê÷ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>snmpwalkoid</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> <methodparam><type>string</type><parameter>community</parameter></methodparam> <methodparam><type>string</type><parameter>object_id</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>retries</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÒ»¸ö°üº¬¶ÔÏó id ¼°ËüÃǸ÷×Ô¶ÔÏóÖµµÄ¹ØÁªÊý×飬ÕâЩ¶ÔÏóÒÔ <parameter>object_id</parameter> ×÷Ϊ¸ù£¬´íÎóÔò·µ»Ø &false;¡£ </para> <para> <function>snmpwalkoid</function> ÓÃÓÚ´Ó <parameter>hostname</parameter> ËùÖ¸¶¨µÄ SNMP ´úÀíÄÇÀï¶ÁÈ¡ËùÓжÔÏó id ¼°ËüÃǸ÷×ÔµÄÖµ¡£<parameter>community</parameter> Ö¸¶¨¶ÔÓڸôúÀíÓжÁȨÏÞµÄÓò¡£Ò»¸öΪ &null; µÄ <parameter>object_id</parameter> ½«±»¿´×÷ SNMP ¶ÔÏóÊ÷µÄ¸ù£¬¶øÔÚ´ËÊ÷ϵÄËùÓжÔÏó½«×÷Ϊһ¸öÊý×é±»·µ»Ø¡£Èç¹ûÖ¸¶¨ÁË <parameter>object_id</parameter>£¬Ôò·µ»ØËùÓÐÔÚ <parameter>object_id</parameter> Ï嵀 SNMP ¶ÔÏó¡£ </para> <para> <function>snmpwalkoid</function> ºÍ <function>snmpwalk</function> µÄͬʱ´æÔÚ³öÓÚÀúÊ·ÔÒò¡£ÌṩÁ½¸öº¯ÊýÊÇΪÁËÏòºó¼æÈÝ¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php $a = snmpwalkoid("127.0.0.1", "public", ""); ?> ]]> </programlisting> </informalexample> </para> <para> Éϱߵĺ¯Êýµ÷Óý«´ÓÔËÐÐÓÚ±¾»úµÄ SNMP ´úÀíÄÇÀï·µ»ØËùÓÐµÄ SNMP ¶ÔÏ󡣿ÉʹÓÃÑ»·±éÀúÕâЩֵ¡£ <informalexample> <programlisting role="php"> <![CDATA[ <?php for (reset($a); $i = key($a); next($a)) { echo "$i: $a[$i]<br>\n"; } ?> ]]> </programlisting> </informalexample> </para> </refsect1> </refentry> <!-- 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 -->