problem creating a new SNMP session

Max Levine <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,

I am using the SNMP perl module that comes with net-snmp-5.6.1. I am
creating a new session like this:

my $session = SNMP::Session(
                           DestHost      => '10.162.18.63',
                           Version       => 3,
                           SecLevel      => 'authNoPriv',
                           SecName       => 'admin',
                           AuthPass        => 'password'
                                                                            );

I am getting this error message:


Argument "DestHost" isn't numeric in subroutine entry at
/usr/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/SNMP.pm
line 62.
Can't locate auto/SNMP/Session.al in @INC (@INC contains:
/usr/komodo/lib/support/dbgp/perllib
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0
/usr/lib/perl5/vendor_perl .) at /home/mlevine/devalias.pl line 31

any ideas?

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.