From: mb at solstaden dot net Operating system: FreeBSD 4.8 Prerelease PHP version: 4CVS-2003-03-04 (stable) PHP Bug Type: SNMP related Bug description: snmpset is not working
I tried a verey simple php script: echo snmpget( "81.26.237.10", "public", "system.sysContact.0" ); snmpset( "81.26.237.10", "private", "system.sysContact.0", "s", "kalle" ); snmpget works: snmpset fails: ouput as follows: STRING: [EMAIL PROTECTED] Warning: snmpset() [function.snmpset]: Invalid object identifier: system.sysContact.0 in /usr/local/www/data/snmp.php on line 17 Warning: snmpset() [function.snmpset]: Error in packet: (noSuchName) There is no such variable name in this MIB. in /usr/local/www/data/snmp.php on line 17 Warning: snmpset() [function.snmpset]: This name does not exist: SNMPv2-SMI::mib-2 in /usr/local/www/data/snmp.php on line 17 I did a tcpdump: 07:04:22.160998 gk.s.port80.se.1556 > as1-1-1--11.eklandahage4.molndal.bostream.net.snmp: GetRequest(28) system.sysDescr.0 07:04:22.179314 as1-1-1--11.eklandahage4.molndal.bostream.net.snmp > gk.s.port80.se.1556: GetResponse(39) system.sysDescr.0="Ericsson DR" 07:04:22.180077 gk.s.port80.se.1557 > as1-1-1--11.eklandahage4.molndal.bostream.net.snmp: GetRequest(28) system.sysContact.0 07:04:22.194298 as1-1-1--11.eklandahage4.molndal.bostream.net.snmp > gk.s.port80.se.1557: GetResponse(39) system.sysContact.0="[EMAIL PROTECTED]" 07:04:22.194991 gk.s.port80.se.1558 > as1-1-1--11.eklandahage4.molndal.bostream.net.snmp: C=private SetRequest(30) ="kalle" 07:04:22.209407 as1-1-1--11.eklandahage4.molndal.bostream.net.snmp > gk.s.port80.se.1558: C=private GetResponse(30) [EMAIL PROTECTED] ="kalle" Am I doing anything wrong? Normally it is my fault. If u think I have found a bug, I will do my best to help u. Magnus Benngard -- Edit bug report at http://bugs.php.net/?id=22529&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22529&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22529&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22529&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22529&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22529&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22529&r=support Expected behavior: http://bugs.php.net/fix.php?id=22529&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22529&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22529&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22529&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22529&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22529&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22529&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22529&r=gnused