#42732 [Opn->Bgs]: EXAMPLE 2251 TYPO (smptget)
| From: | tony2001@php.net | Date: | Tue, 02 Oct 2007 10:32:41 +0000 |
| Subject: | #42732 [Opn->Bgs]: EXAMPLE 2251 TYPO (smptget) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118070@lists.php.net to get a copy of this message | ||
ID: 42732
Updated by: tony2001@php.net
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