php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30844 tcpdump shows that snmpget is supplying blank community string
Submitted: 2004-11-19 21:20 UTC Modified: 2004-12-29 15:26 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: steveh at brendata dot co dot uk Assigned:
Status: Closed Package: SNMP related
PHP Version: 4.3.9 OS: linux 2.4.28
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 12 = ?
Subscribe to this entry?

 
 [2004-11-19 21:20 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-29 15:26 UTC] steveh at brendata dot co dot uk
Fixed in 4.3.10.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC