SNMP::Session from /usr/ports/net-mgmt/net-snmp does not return
anything
Dmitry V. Sukhodoev
raven at chics.ru
Wed Nov 9 21:38:25 PST 2005
>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 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 :)
More information about the freebsd-ports
mailing list