#30844 [Opn]: tcpdump shows that snmpget is supplying blank community string

From: Date: Tue, 30 Nov 2004 12:38:51 +0000
Subject: #30844 [Opn]: tcpdump shows that snmpget is supplying blank community string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69644@lists.php.net to get a copy of this message
ID: 30844 User updated by: steveh at brendata dot co dot uk Reported By: steveh at brendata dot co dot uk Status: Open Bug Type: SNMP related Operating System: linux 2.4.28 PHP Version: 4.3.9 New Comment: Any ideas on this? Previous Comments: ------------------------------------------------------------------------ [2004-11-19 21:20:09] steveh at brendata dot co dot uk Description: ------------ snmpget is failingto set the community string. snmpget from the command line works, but when called from php it fails. This is with net-snmp 5.2-rc4 (also tried rc2) tcpdump for the command line snmpget works as expected, but for the php one, the community string is shown as blank Reproduce code: --------------- snmp_set_quick_print(0); $snmp_value = snmpget("localhost", "public", ".1.3.6.1.2.1.1.1.0" , (500 * 1000), 3); Expected result: ---------------- tcpdump showing a community string set to "public" Actual result: -------------- tcpdump showing a 0 length community string (the dump showed 0x04 0x00 for the element. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30844&edit=1

« previous php.bugs (#69644) next »