Remember that the timeout includes trip time for transport, so setting it too low and sending it across the country will time out and return a 'No response from x.x.x.x'(PHP >= 5.2.0, PHP 7, PHP 8)
snmp2_real_walk — 指定したすべてのオブジェクトとそのオブジェクト ID を返す
$hostname,$community,$object_id,$timeout = -1,$retries = -1
   snmp2_real_walk() 関数は、
   object_id から始まる
   SNMP オブジェクトを走査し、その値とオブジェクト ID を返します。
  
hostnameSNMP エージェント (サーバー) のホスト名。
communityリードコミュニティ。
object_id前にある SNMP オブジェクト ID。
timeout最初のタイムアウトまでのマイクロ秒数。
retriesタイムアウト発生時の再試行回数。
   成功した場合に SNMP オブジェクト ID とその値の連想配列。エラー時に false を返します。
   エラー時には E_WARNING が発生します。
  
例1 snmp2_real_walk() の使用法
<?php
 print_r(snmp2_real_walk("localhost", "public", "IF-MIB::ifName"));
?>上の例の結果は次のようになります。
Array
      (
      [IF-MIB::ifName.1] => STRING: lo
      [IF-MIB::ifName.2] => STRING: eth0
      [IF-MIB::ifName.3] => STRING: eth2
      [IF-MIB::ifName.4] => STRING: sit0
      [IF-MIB::ifName.5] => STRING: sixxs
    )
Remember that the timeout includes trip time for transport, so setting it too low and sending it across the country will time out and return a 'No response from x.x.x.x'