ID: 23685
Updated by: [email]harriephp.net[/email]
Reported By: s dot zagrodzki at net dot icm dot edu dot pl
-Status: Feedback
+Status: yzed
Bug Type: SNMP related
Operating System: Linux 2.2
PHP Version: 4.3.2RC4-dev
New Comment:

I tried this with other variables (I do not have an
SNMP agent implementing the ifXTable) and cannot
reproduce it.

Therefore I am thinking that it maybe the SNMP agent
which returns these values and as a result they
show up in PHP. Could you confirm that this is not a
problem with the SNMP agent/router.


Previous Comments:
------------------------------------------------------------------------

[2003-07-13 00:11:43] [email]sniperphp.net[/email]

Please try using this CVS snapshot:

[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

For Windows:

[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

Some changes have been made lately.


------------------------------------------------------------------------

[2003-05-19 04:30:19] s dot zagrodzki at net dot icm dot edu dot pl

I've copied ext/snmp directory from this snapshot into my php source
tree (when I tried to compile the snap as it is, it complained about
too old db3 library). It didn't help.

------------------------------------------------------------------------

[2003-05-18 16:57:47] [email]sniperphp.net[/email]

Please try using this CVS snapshot:

[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

For Windows:

[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

------------------------------------------------------------------------

[2003-05-18 15:47:25] s dot zagrodzki at net dot icm dot edu dot pl

PHP with snmp module. Sample piece of output from snmpwalk utility from
ucd-snmp:
$ snmpwalk <router> <community>
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias
....
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.3 = lacze do Obs. Astr.
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.4 =
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.5 = : lacze do Wydz.
Zarzadzania
....
(value of ifAlias.4 is an empty string).
Sample script:
<?
$ifAlias = snmprealwalk("<router>", "<community>",
"ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias" );
print_r($ifAlias);
?>

Output of sample script:
[ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.3] => lacze do Obs.
Astr.
[ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.4] => lacze do Obs.
Astr.
[ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.5] => : lacze do
Wydz. Zarzadz
(ifAlias.4 is now the same as ifAlias.3, not an empty string).

ucd-snmp 4.2.6
router is Cisco 2511 with IOS 11.1(5) (don't suppose it matters, but
just in case...)


------------------------------------------------------------------------


--
Edit this bug report at [url]http://bugs.php.net/?id=23685&edit=1[/url]