Hi Is there any who got the snmp function to work witch non standard snmp port (161).
All configuration and installation of php was successful but unfortunately I cant specify wich port I want to use:
$a = snmpwalk('foo.bar:1162', 'public', 'SOME OID');
for ($i=0; $i < count($a); $i++) {
echo $a[$i];
echo "<br>";
}
I use following configure string in php:
./configure --with-mysql --with-apache=../apache_1.3.28 --enable-track-vars --with-snmp=/usr/local --with-openssl --enable-ftp
And following to apache:
./configure --activate-module=src/modules/php4/libphp4.a
I use net-snmp 5.0.8...
I know that there was a bug in php (bugid:9401) but it was long time ago(2001)... I asume that has been uppdated...
Is there any who got this to work?
Thanks
danGul