Perl SNMP and UCD SNMP 4.0.1 
Author Message
 Perl SNMP and UCD SNMP 4.0.1

This is my first attempt at trying to extend the UCD SNMP agent (version
4.0.1) to provide a custom entry in the enterprises branch of the MIB
tree. I cannot figure out which version of the SNMP Perl module to use
with this version of the UCD SNMP agent. I have installed the UCD SNMP
package on a PC running Mandrake-Linux 6.1. I have tried SNMP-1.8.2 and
SNMP-3.1.0b1. Both bomb out with errors when doing the make step. Can
anyone tell me what I'm missing?

SNMP-1.8.2 produces the following:

# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for SNMP
Enter host and community for SNMP tests:  [localhost private]
# make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/SNMP
mkdir blib/lib/auto
mkdir blib/lib/auto/SNMP
cp SNMP.pm blib/lib/SNMP.pm
AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP)
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 /usr/lib/perl5/5.00503/ExtUtils/xsubpp
-noprototypes -typemap /usr/lib/perl5/5.00503/ExtUtils/typemap -typemap
typemap SNMP.xs >xstmp.c && mv xstmp.c SNMP.c
cc -c -I/usr/local/include/ucd-snmp -Dbool=char -DHAS_BOOL -O2
-DVERSION=\"1.8.2\" -DXS_VERSION=\"1.8.2\" -fpic
-I/usr/lib/perl5/5.00503/i386-linux/CORE  SNMP.c
In file included from SNMP.xs:67:
/usr/local/include/ucd-snmp/snmp_api.h:577: warning: parameter names
(without types) in function declaration
SNMP.xs: In function `__send_sync_pdu':
SNMP.xs:828: warning: passing arg 2 of `Perl_sv_catpv' discards `const'
from pointer target type
SNMP.xs:837: warning: passing arg 2 of `Perl_sv_catpv' discards `const'
from pointer target type
SNMP.xs: In function `XS_SNMP__trapV1':
SNMP.xs:1878: structure has no member named `sin_addr'
SNMP.xs:1879: structure has no member named `sin_addr'
SNMP.xs:1884: structure has no member named `sin_addr'
make: *** [SNMP.o] Error 1

SNMP-3.1.0b1 produces the following:

# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for SNMP
# make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/SNMP
mkdir blib/lib/auto
mkdir blib/lib/auto/SNMP
cp SNMP.pm blib/lib/SNMP.pm
AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP)
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503 /usr/lib/perl5/5.00503/ExtUtils/xsubpp
-noprototypes -typemap /usr/lib/perl5/5.00503/ExtUtils/typemap -typemap
typemap SNMP.xs >xstmp.c && mv xstmp.c SNMP.c
cc -c -I/usr/local/include -Dbool=char -DHAS_BOOL -O2
-DVERSION=\"3.1.0b1\" -DXS_VERSION=\"3.1.0b1\" -fpic
-I/usr/lib/perl5/5.00503/i386-linux/CORE  SNMP.c
SNMP.xs: In function `XS_SNMP__set':
SNMP.xs:1656: `SNMPERR_UNKNOWN_OBJID' undeclared (first use in this
function)
SNMP.xs:1656: (Each undeclared identifier is reported only once
SNMP.xs:1656: for each function it appears in.)
SNMP.xs:1671: `SNMPERR_VAR_TYPE' undeclared (first use in this function)

SNMP.xs: In function `XS_SNMP__get':
SNMP.xs:1817: `SNMPERR_UNKNOWN_OBJID' undeclared (first use in this
function)
SNMP.xs: In function `XS_SNMP__getnext':
SNMP.xs:1968: `SNMPERR_UNKNOWN_OBJID' undeclared (first use in this
function)
SNMP.xs: In function `XS_SNMP__getbulk':
SNMP.xs:2131: `SNMPERR_UNKNOWN_OBJID' undeclared (first use in this
function)
make: *** [SNMP.o] Error 1



Sat, 20 Jul 2002 03:00:00 GMT  
 Perl SNMP and UCD SNMP 4.0.1

Marvin> I cannot figure out which version of the SNMP Perl module to
Marvin> use with this version of the UCD SNMP agent.

The 3.1.0b1 or higher is needed for ucd-snmp 4.0 and higher.  1.8.2
can only be used with ucd-snmp-3.6 and lower.

In the next release of the ucd-snmp package, the perl module will be
distributed with it and should help alleviate versioning compatibility
problems like this.  ucd-snmp-4.1 is due out later this week, unless
something major is found.

--
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."



Sat, 20 Jul 2002 03:00:00 GMT  
 Perl SNMP and UCD SNMP 4.0.1
Thanks, but as my posting states, SNMP-3.1.0b1 produces errors as well. There is an article in
the UCD SNMP list archive which says to use SNMP-3.0.1 with ucd-snmp-4.0.1, but I can't find
this version on any of the sites mentioned in the documentation.
Quote:


> Marvin> I cannot figure out which version of the SNMP Perl module to
> Marvin> use with this version of the UCD SNMP agent.

> The 3.1.0b1 or higher is needed for ucd-snmp 4.0 and higher.  1.8.2
> can only be used with ucd-snmp-3.6 and lower.

> In the next release of the ucd-snmp package, the perl module will be
> distributed with it and should help alleviate versioning compatibility
> problems like this.  ucd-snmp-4.1 is due out later this week, unless
> something major is found.

> --
> "Ninjas aren't dangerous.  They're more afraid of you than you are of them."



Sat, 20 Jul 2002 03:00:00 GMT  
 Perl SNMP and UCD SNMP 4.0.1
Looks like SNMP-3.0.0b1, which I got from ftp://ftp-east.baynetworks.com/netman/snmp/perl5 makes
without errors against ucd-snmp-4.0.1. However, the 'make test' step fails (t/session fails tests
3, 7, 8). I'm hoping that this won't stop me from doing mib2c on a very rudimentary asn.1 file.
Quote:

> Thanks, but as my posting states, SNMP-3.1.0b1 produces errors as well. There is an article in
> the UCD SNMP list archive which says to use SNMP-3.0.1 with ucd-snmp-4.0.1, but I can't find
> this version on any of the sites mentioned in the documentation.



> > Marvin> I cannot figure out which version of the SNMP Perl module to
> > Marvin> use with this version of the UCD SNMP agent.

> > The 3.1.0b1 or higher is needed for ucd-snmp 4.0 and higher.  1.8.2
> > can only be used with ucd-snmp-3.6 and lower.

> > In the next release of the ucd-snmp package, the perl module will be
> > distributed with it and should help alleviate versioning compatibility
> > problems like this.  ucd-snmp-4.1 is due out later this week, unless
> > something major is found.

> > --
> > "Ninjas aren't dangerous.  They're more afraid of you than you are of them."



Sat, 20 Jul 2002 03:00:00 GMT  
 Perl SNMP and UCD SNMP 4.0.1

Marvin> Looks like SNMP-3.0.0b1, which I got from
Marvin> ftp://ftp-east.baynetworks.com/netman/snmp/perl5 makes without
Marvin> errors against ucd-snmp-4.0.1. However, the 'make test' step
Marvin> fails (t/session fails tests 3, 7, 8). I'm hoping that this
Marvin> won't stop me from doing mib2c on a very rudimentary asn.1
Marvin> file.

If you wait about 2 days, ucd-snmp-4.1 will be released which will
have a much more tightly integrated perl module in it.  Actually,
mib2c is better as well (slightly).

--
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."



Sun, 21 Jul 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. SNMP 3.1.0, ucd-snmp-4.1.2, gcc-2.95.2

2. perl, snmpv3 and ucd-snmp

3. UCD SNMP not working from within PERL?

4. 2nd try: problems with SNMP-3.1.0, SNMP-Util-1.7, ucd-snmp-4.1.1

5. ucd snmp ?

6. ucd-snmp-4.1.2

7. Misreporting of Enumerated Mib Values in UCD SNMP.pm

8. UCD-SNMP module problem

9. Net-SNMP Perl 5 SNMP install problem

10. SNMP table walking with SNMP PERL module?

11. SNMP module (SNMP Perl) ?

12. Help with SNMP and SNMP traps

 

 
Powered by phpBB® Forum Software