Skip site navigation (1)Skip section navigation (2)
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:   SNMP::Session from /usr/ports/net-mgmt/net-snmp does not return anything
Message-ID:  <200511100538.jAA5cLYi004192@gk.chics.ru>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Dmitry V. Sukhodoev
>Organization:	chics jsc
>Confidential:	no 
>Synopsis:	SNMP::Session from /usr/ports/net-mgmt/net-snmp does not return anything
>Severity:	serious
>Priority:	medium
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 5.4-STABLE i386
>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 :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511100538.jAA5cLYi004192>