Date: Thu, 10 Nov 2005 10:38:21 +0500 (YEKT) From: "Dmitry V. Sukhodoev" <raven@chics.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: freebsd-ports-bugs@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: ports/88776: SNMP::Session from /usr/ports/net-mgmt/net-snmp does not return anything Message-ID: <200511100538.jAA5cLYi004192@gk.chics.ru> Resent-Message-ID: <200511100540.jAA5eFNM006466@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511100538.jAA5cLYi004192>