From 8a346a51056aed941e212b01f409a09ebe534511 Mon Sep 17 00:00:00 2001 From: Christian Hammers Date: Sat, 19 Feb 2011 18:44:47 +0000 Subject: [PATCH] Added documentation for snmp3_walk() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308489 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/snmp/functions/snmp3-walk.xml | 89 +++++++++++++++++++------ 1 file changed, 68 insertions(+), 21 deletions(-) diff --git a/reference/snmp/functions/snmp3-walk.xml b/reference/snmp/functions/snmp3-walk.xml index c20459b2da..7a84802ca5 100644 --- a/reference/snmp/functions/snmp3-walk.xml +++ b/reference/snmp/functions/snmp3-walk.xml @@ -4,9 +4,9 @@ snmp3_walk - Description + Fetch all the SNMP objects from an agent - + &reftitle.description; @@ -23,13 +23,14 @@ stringretries - + snmpwalk function is used to read all the values from + an SNMP agent specified by the hostname. + + + Even if the security level does not use an auth or priv protocol/password valid values have to be specified. - - &warn.undocumented.func; - - + &reftitle.parameters; @@ -37,7 +38,7 @@ host - + The hostname of the SNMP agent (server). @@ -45,7 +46,7 @@ sec_name - + the security name, usually some kind of username @@ -53,7 +54,7 @@ sec_level - + the security level (noAuthNoPriv|authNoPriv|authPriv) @@ -61,7 +62,7 @@ auth_protocol - + the authentication protocol (MD5 or SHA) @@ -69,7 +70,7 @@ auth_passphrase - + the authentication pass phrase @@ -77,7 +78,7 @@ priv_protocol - + the privacy protocol (DES or AES) @@ -85,7 +86,7 @@ priv_passphrase - + the privacy pass phrase @@ -93,7 +94,13 @@ object_id - + If &null;, object_id is taken as the root of + the SNMP objects tree and all objects under that tree are returned as + an array. + + + If object_id is specified, all the SNMP objects + below that object_id are returned. @@ -101,7 +108,7 @@ timeout - + The number of microseconds until the first timeout. @@ -109,21 +116,61 @@ retries - + The number of retries in case timeouts occur. - + &reftitle.returnvalues; - + Returns an array of SNMP object values starting from the + object_id as root or &false; on error. - - + + + + &reftitle.examples; + + + <function>snmpwalk</function> Example + + +]]> + + + + + Above function call would return all the SNMP objects from the + SNMP agent running on localhost: + 'STRING: lo', + 1 => 'STRING: eth0', + 2 => 'STRING: eth2', + 3 => 'STRING: sit0', + 4 => 'STRING: sixxs', +) +]]> + + + + + &reftitle.seealso; + + + snmp3_real_walk + + + +