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
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