Environment: Solaris 8, SNMP Version 5.04021 (built from tarball)
Perl: This is perl, v5.8.5 built for sun4-solaris

I have a problem with one of my existing programs which is based on the
bulkwalk.pl example from the Perl examples directory.

This had worked fine in the past using SNMP V5.1.1 but fails under
5.4.2.1. The bulkwalk.pl sample program also fails in the same fashion:

$ bulkwalk.pl
Not an ARRAY reference at bulkwalk.pl line 65.

The area around line 65 is:
resp = $sess->bulkwalk(2, 8, $vars);
die "Cannot do bulkwalk: $sess->{ErrorStr} ($sess->{ErrorNum})\n"
                                                        if
$sess->{ErrorNum};
for $vbarr ( @resp ) {
    # Determine which OID this request queried.  This is kept in the
VarList
    # reference passed to bulkwalk().
    $oid = $$vars[$i++]->tag();

    # Count the number of responses to this query.  The count will be 1
for
    # non-repeaters, 1 or more for repeaters.
    $num = scalar @$vbarr;                              <<<<<<< This is
line 65
    print "$num responses for oid $oid: \n";

It appears that Perl is unhappy with the attempt to use vbarr as an
array.

Anyone have any ideas?

_________________________
Almon (Al) Sorrell
Corporate Network Services | Network Engineering Consultant
T. Rowe Price 
4515 Painters Mill Road, TE9008
Owings Mills, MD 21117
Phone: 410-345-3042 (508-3042)  Fax:410-345-3030
Email: al_sorr...@troweprice.com




T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its 
associates do not provide legal or tax advice.  Any tax-related discussion 
contained in this e-mail, including any attachments, is not intended or written 
to be used, and cannot be used, for the purpose of (i) avoiding any tax 
penalties or (ii) promoting, marketing, or recommending to any other party any 
transaction or matter addressed herein.  Please consult your independent legal 
counsel and/or professional tax advisor regarding any legal or tax issues 
raised in this e-mail.

The contents of this e-mail and any attachments are intended solely for the use 
of the named addressee(s) and may contain confidential and/or privileged 
information. Any unauthorized use, copying, disclosure, or distribution of the 
contents of this e-mail is strictly prohibited by the sender and may be 
unlawful. If you are not the intended recipient, please notify the sender 
immediately and delete this e-mail.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to