#22723 [NEW]: snmp set does not work properly for shortened OID
| From: | jamuel at my740il dot com | Date: | Sat, 15 Mar 2003 08:25:59 +0000 |
| Subject: | #22723 [NEW]: snmp set does not work properly for shortened OID | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-35658@lists.php.net to get a copy of this message | ||
From: jamuel at my740il dot com
Operating system: Linux 2.4.18
PHP version: 4.3.2RC1
PHP Bug Type: SNMP related
Bug description: snmp set does not work properly for shortened OID
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 bug report at http://bugs.php.net/?id=22723&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22723&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22723&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22723&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22723&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22723&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22723&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22723&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22723&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22723&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22723&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22723&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22723&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22723&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22723&r=gnused