ports/88776: SNMP::Session from /usr/ports/net-mgmt/net-snmp does not return anything

Dmitry V. Sukhodoev raven at chics.ru
Thu Nov 10 05:40:16 UTC 2005


>Number:         88776
>Category:       ports
>Synopsis:       SNMP::Session from /usr/ports/net-mgmt/net-snmp does not return anything
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 10 05:40:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry V. Sukhodoev
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
chics jsc
>Environment:
System: FreeBSD gk.chics.ru 5.4-STABLE FreeBSD 5.4-STABLE #0: Thu Oct 20 22:45:59 YEKST 2005 root at gk.chics.ru:/usr/nfs/obj/usr/nfs/src/sys/gk i386

>Description:
simple perl script does not return anithyng:
=== cut ===
#!/usr/bin/perl
use SNMP;

my $s = new SNMP::Session(
 DestHost => 'localhost',
 Community => 'community'
);
print '"' . $s->get('.1.3.6.1.2.1.1.1.0') . '"' . "\n";
=== cut ===

but, snmpwalk -On -v 1 -c community localhost .1.3.6.1.2.1.1.1.0 returns correct result:
.1.3.6.1.2.1.1.1.0 = STRING: FreeBSD gk.chics.ru 5.4-STABLE FreeBSD 5.4-STABLE #0: Thu Oct 20 22:45:59 YEKST 2005     root at gk.chics.ru:/usr/nfs/obj/usr/nfs/src/sys/gk i386

>How-To-Repeat:
just execute perl script, published bellow

>Fix:
i don't know, please help :)
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list