Re: Working a whole device with Net::SNMP with Perl

Thomas Bonham <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Wes Hardaker wrote:
>>>>>> On Tue, 10 Jun 2008 05:08:11 -0700, Thomas Bonham <[email protected]> said:
>>>>>>             
>
> TB> I'm trying to figure out how to walk a whole device using Net::SNMP in 
> TB> perl.
>
> We aren't affiliated with the Net::SNMP perl module; the module that
> binds to the Net-SNMP package is "SNMP" instead (in which case, Dave's
> answer is spot on)
>   
I didn't know that.

Maybe someone can tell me why I'm getting a error here with this little 
bit of perl.

Code:
#/usr/bin/perl -w
$host = "localhost";
$st="public";
$sess = new SNMP::Session(DestHost=>$host,Community=>$st);
$val = $sess->get("sysDescr.0");
die $sess->{ErrroStr} if($sess->{ErrorStr});

Error: Unknow user name at test.pl line 7.

Thank you,

Thomas

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.