ID:               22723
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jamuel at my740il dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         SNMP related
 Operating System: Linux 2.4.18
 PHP Version:      4.3.2RC1
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

See Bug #22529



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

[2003-03-15 02:25:59] jamuel at my740il dot com

with Net-SNMP v5.0.9pre1

snmpset always fails for shortened textual OIDs even though the same
smmpset cmd (built from the netsnmp library) works correctly from the
linux shell.  (Makes me think the problem is in PHP vs in Net-SNMP)

The failure text is:
Warning: snmpset() [http://www.php.net/function.snmpset]: Invalid
object identifier: sysContact.0 in /var/www/html/set-test.php on line
16

Warning: snmpset() [http://www.php.net/function.snmpset]: Error in
packet: (noSuchName) There is no such variable name in this MIB. in
/var/www/html/set-test.php on line 16

Warning: snmpset() [http://www.php.net/function.snmpset]: This name
does not exist: SNMPv2-SMI::internet in /var/www/html/set-test.php on
line 16

(Please note the value is not set as well.)

Also, full text OIDs from the ".iso.org.dod . . ." root work just fine
with snmpset (and so do full numeric OIDs).

FWIW, the shortened text OIDs *do* work correctly with snmpget.

Here's the line in php that fails:
echo snmpset ('10.1.1.1', 'private', 'sysContact.0', 's', 'My Name');

Thanks for your help . . .

JPS

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


-- 
Edit this bug report at http://bugs.php.net/?id=22723&edit=1

Reply via email to