I found on Windows (PHP 5) an empty string did not return anything, it just timed out. I had to use null instead:
<?php
$a = snmpwalk("127.0.0.1", "public", null);
?>
![]() |
|
||||||||||
|
snmpwalkОписаниеarray snmpwalk ( string hostname, string community, string object_id [, int timeout [, int retries]] )
snmpwalk() function is used to read all the values from
an SNMP agent specified by the Список параметров
Возвращаемые значения
Returns an array of SNMP object values starting from the
Примеры
Above function call would return all the SNMP objects from the SNMP agent running on localhost. One can step through the values with a loop snmpwalk
http://mike.eire.ca
23-Mar-2005 10:54
I found on Windows (PHP 5) an empty string did not return anything, it just timed out. I had to use null instead:
bobby [dot] clark [at] eku [dot] edu
17-Sep-2003 02:29
I had to use an object_id like these.
Lars Troen
14-Mar-2003 03:18
Note that there's different behaviuor in php snmpwalk and ucd snmpwalk. If you try to walk an oid that has one value not under a subkey of the walked oid, ucd snmpwalk will return the value while php's snmpwalk will not.
anders at ei dot nu
29-Jan-2003 10:11
It would be nice to be able to specify what snmp version to use ( 1,2c,3 )
layer2 at www dot com
29-Aug-2001 08:52
Something to care about in dealing with snmpwalk:<BR>
john at antefacto dot com
17-Aug-2001 08:21
Ah. That's why all of our SNMP stuff was timing out anytime there was any load on the system. Sigh. A waste of two weeks trying to debug snmp....
billf at freebsd dot org
01-Aug-2001 02:22
for the poster wondering what the
jmartinson(AT_nospam)info234.com
20-Jun-2001 07:41
A quick router device view: |