Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Net::SNMP V3 context name

by wanexa (Initiate)
on Dec 09, 2014 at 13:21 UTC ( [id://1109721]=perlquestion: print w/replies, xml ) Need Help??

wanexa has asked for the wisdom of the Perl Monks concerning the following question:

Hello i 'm able to make this request through snmpwalk : snmpwalk 1.1.1.1 -n toto:3 -v 3 -u snmp and I woulk like to do the same thingin NET:SNMP : Here is the session I'm trying to create my ( $session, $error ) = Net::SNMP->session(-hostname => $opt_H, -version =>'3', -username => $opt_u, -contextname => $opt_c); everytime the parameters contextname is unknow, what is the correct answer Let me know Bests

Replies are listed 'Best First'.
Re: Net::SNMP V3 context name
by Corion (Patriarch) on Dec 09, 2014 at 13:34 UTC

    So, what is in $opt_c and how do you populate $opt_c?

    You can help us help you better by posting a short, self-contained program that we can use to reproduce your problem. Please also tell us the exact error message.

Re: Net::SNMP V3 context name
by soonix (Canon) on Dec 10, 2014 at 11:32 UTC
    according to Net::SNMP's doc, session doesn't accept a -contextname parameter. The request methods do.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1109721]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found