note 41857 added to function.snmpwalk
| From: | tahir at itcc dot no | Date: | Fri, 23 Apr 2004 21:31:53 +0000 |
| Subject: | note 41857 added to function.snmpwalk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68692@lists.php.net to get a copy of this message | ||
Hi,
I have upgraded php and snmp. When I use
..
.
$ifDesc = snmpwalk($host, $community, "IF-MIB::ifDescr");
for ($i = 0; $i < count($ifDesc); ++$i)
{
print "$ifDesc[$i]\n";
.
.
The out put is not just the value of the OID, but the OID string + the value. Like this.
interfaces.ifTable.ifEntry.ifDescr.1 = FastEthernet0/0
If i use
snmp_set_quick_print(1); I only get rid of "=".
Can any one help
Thanks
----
Manual Page -- http://www.php.net/manual/en/function.snmpwalk.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41857
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41857&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41857&report=yes
Search -- http://master.php.net/manage/user-notes.php