#23321 [Opn->Fbk]: snmpwalk() returns wrong result

From: Date: Thu, 24 Apr 2003 08:14:52 +0000
Subject: #23321 [Opn->Fbk]: snmpwalk() returns wrong result
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38263@lists.php.net to get a copy of this message
ID: 23321 Updated by: sniper@php.net Reported By: kvn@php.net -Status: Open +Status: Feedback Bug Type: SNMP related Operating System: FreeBSD 4.7-RELEASE-p10 PHP Version: 4.3.1 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip And maybe update your ucd-snmp to net-snmp.. Previous Comments: ------------------------------------------------------------------------ [2003-04-23 13:22:47] kvn@php.net router IOS: Cisco Internetwork Operating System Software IOS (tm) 3600 Software (C3660-JK8O3S-M), Version 12.2(12), RELEASE SOFTWARE (fc1) mordor:21:07:/home/www/data/noc/fclients #pkg_info | grep snmp ucd-snmp-4.2.6 An extendable SNMP implementation mordor:21:07:/home/www/data/noc/fclients # snmpwalk belegost citius ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.1 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.2 = INTERNAL ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.3 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.4 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.5 = ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.6 = NOC ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.7 = UA-IX ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.8 = AS-HEADS .... there is PHP code: <? $hostname = belegost ; $community = citius ; $object_id_1 = "ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias" ; $ifAlias = snmpwalk ($hostname, $community, $object_id_1) ; print_r($ifAlias); ?> Result: Array ( [0] => Tã¹¹^Uþ¿( [1] => INTERNAL [2] => INTERNAL [3] => INTERNAL [4] => INTERNAL [5] => NOC [6] => UA-IX [7] => AS-HEADS ... Interfaces 0, 2, 3, 4 does not have descriptions on the router too. But php's snmpwalk returns INTRNAL (something unreadable for i-face 0) But php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23321&edit=1

« previous php.bugs (#38263) next »