ID: 42732 Updated by: [EMAIL PROTECTED] Reported By: brunoseys at telenet dot be -Status: Open +Status: Bogus Bug Type: SNMP related Operating System: irrelevant PHP Version: 6CVS-2007-09-22 (snap) New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2007-09-22 09:00:30] brunoseys at telenet dot be Description: ------------ According the SNMPv2-MIB DEFINITIONS the right syntax should be "system.sysContact.0" and NOT "system.SysContact.0" as used is example 2251. SNMPv2-MIB DEFINITIONS ... sysContact OBJECT-TYPE SYNTAX DisplayString (SIZE (0..255)) MAX-ACCESS read-write STATUS current DESCRIPTION "The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string." ::= { system 4 } Reproduce code: --------------- //example 2251. Using snmpget() <?php $syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0"); ?> Expected result: ---------------- IRRELEVANT (system depending) Actual result: -------------- Warning: snmpget() [function.snmpget]: Invalid object identifier: system.SysContact.0 inC:\apachefriends\xampp\htdocs\edu\snmp_test.php on line 36 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42732&edit=1