<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.snmpgetnext.php',
    1 => 'snmpgetnext',
    2 => 'R&eacute;cup&egrave;re un objet SNMP qui suit imm&eacute;diatement
   l\'objet fourni',
  ),
  'up' => 
  array (
    0 => 'ref.snmp.php',
    1 => 'Fonctions SNMP',
  ),
  'prev' => 
  array (
    0 => 'function.snmpget.php',
    1 => 'snmpget',
  ),
  'next' => 
  array (
    0 => 'function.snmprealwalk.php',
    1 => 'snmprealwalk',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/snmp/functions/snmpgetnext.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.snmpgetnext" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">snmpgetnext</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">snmpgetnext</span> &mdash; <span class="dc-title">Récupère un objet <abbr title="Simple Network Management Protocol">SNMP</abbr> qui suit immédiatement
   l&#039;objet fourni</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.snmpgetnext-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>snmpgetnext</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"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>


  <p class="simpara">
   La fonction <span class="function"><strong>snmpgetnext()</strong></span> est utilisée
   pour lire la valeur d&#039;un objet <abbr title="Simple Network Management Protocol">SNMP</abbr> qui suit immédiatement
   l&#039;objet dont l&#039;identifiant est spécifié par le paramètre
   <code class="parameter">object_id</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.snmpgetnext-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">hostname</code></dt>
    <dd><span class="simpara">Le nom d&#039;hôte de l&#039;agent <abbr title="Simple Network Management Protocol">SNMP</abbr> (serveur).</span></dd>
   
   
    <dt><code class="parameter">community</code></dt>
    <dd><span class="simpara">La communauté de lecture.</span></dd>
   
   
    <dt><code class="parameter">object_id</code></dt>
    <dd><span class="simpara">L&#039;identifiant d&#039;objet <abbr title="Simple Network Management Protocol">SNMP</abbr> qui précède celui recherché.</span></dd>
   
   
    <dt><code class="parameter">timeout</code></dt>
    <dd><span class="simpara">Le nombre de microsecondes avant le premier délai d&#039;expiration.</span></dd>
   
   
    <dt><code class="parameter">retries</code></dt>
    <dd><span class="simpara">Le nombre de tentatives dans le cas où le délai d&#039;expiration survient.</span></dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.snmpgetnext-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne la valeur de l&#039;objet <abbr title="Simple Network Management Protocol">SNMP</abbr> en cas de succès
   ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
   Dans le cas où une erreur survient, une alerte de type
   E_WARNING sera émise.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.snmpgetnext-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Exemple avec <span class="function"><strong>snmpgetnext()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$nameOfSecondInterface </span><span style="color: #007700">= </span><span style="color: #0000BB">snmpgetnetxt</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.1'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.snmpgetnext-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.snmpget.php" class="function" rel="rdfs-seeAlso">snmpget()</a> - Re&ccedil;oit un objet SNMP</span></li>
   <li><span class="function"><a href="function.snmpwalk.php" class="function" rel="rdfs-seeAlso">snmpwalk()</a> - Re&ccedil;oit tous les objets SNMP d'un agent</span></li>
  </ul>
 </div>


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