<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.snmp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.snmprealwalk.php',
    1 => 'snmprealwalk',
    2 => 'Return all objects including their respective object ID within the specified one',
  ),
  'up' => 
  array (
    0 => 'ref.snmp.php',
    1 => 'SNMP Функції',
  ),
  'prev' => 
  array (
    0 => 'function.snmpgetnext.php',
    1 => 'snmpgetnext',
  ),
  'next' => 
  array (
    0 => 'function.snmpset.php',
    1 => 'snmpset',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/snmp/functions/snmprealwalk.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.snmprealwalk" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">snmprealwalk</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">snmprealwalk</span> &mdash; <span class="dc-title">
   Return all objects including their respective object ID within the specified one
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.snmprealwalk-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>snmprealwalk</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$hostname</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$community</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$object_id</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timeout</code><span class="initializer"> = -1</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$retries</code><span class="initializer"> = -1</span></span><br>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   The <span class="function"><strong>snmprealwalk()</strong></span> function is used to traverse over a number
   of <abbr title="Simple Network Management Protocol">SNMP</abbr> objects starting from <code class="parameter">object_id</code>
   and return not only their values but also their object ids.
  </p> 
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.snmprealwalk-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">hostname</code></dt>
     <dd><p class="para">The hostname of the <abbr title="Simple Network Management Protocol">SNMP</abbr> agent (server).</p></dd>
    
    
     <dt><code class="parameter">community</code></dt>
     <dd><p class="para">The read community.</p></dd>
    
    
     <dt><code class="parameter">object_id</code></dt>
     <dd><p class="para">The <abbr title="Simple Network Management Protocol">SNMP</abbr> object id which precedes the wanted one.</p></dd>
    
    
     <dt><code class="parameter">timeout</code></dt>
     <dd><p class="para">The number of microseconds until the first timeout.</p></dd>
    
    
     <dt><code class="parameter">retries</code></dt>
     <dd><p class="para">The number of times to retry if timeouts occur.</p></dd>
    
   </dl>
  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.snmprealwalk-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns an associative array of the <abbr title="Simple Network Management Protocol">SNMP</abbr> object ids and their values on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on error.
   In case of an error, an E_WARNING message is shown.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.snmprealwalk-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 Using <span class="function"><strong>snmprealwalk()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">snmprealwalk</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">, </span><span style="color: #DD0000">"public"</span><span style="color: #007700">, </span><span style="color: #DD0000">"IF-MIB::ifName"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    
    <div class="example-contents"><p>
     The above will output something like:
<div class="examplescode"><pre class="examplescode">Array
      (
      [IF-MIB::ifName.1] =&gt; STRING: lo
      [IF-MIB::ifName.2] =&gt; STRING: eth0
      [IF-MIB::ifName.3] =&gt; STRING: eth2
      [IF-MIB::ifName.4] =&gt; STRING: sit0
      [IF-MIB::ifName.5] =&gt; STRING: sixxs
    )</pre>
</div>
    </p></div>
   </div>
  </p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.snmprealwalk-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.snmpwalk.php" class="function" rel="rdfs-seeAlso">snmpwalk()</a> - Fetch all the SNMP objects from an agent</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>