Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Net::SNMP V3 context name

by wanexa (Initiate)
on Dec 09, 2014 at 13:21 UTC ( #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 -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 (Pope) 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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2020-11-30 02:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found