RE: Passing context name and Engine ID in Request

"Dio, Lee" <[email protected]>
Newsgroups gmane.network.net-snmp.devel,gmane.network.net-snmp.user
Message-ID <20070905093152687.00000002940@chnxsc420>
 It seems good, I'm working on it to confirm.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: 200794 17:33
To: [email protected]
Cc: [email protected]; [email protected]
Subject: Re: Passing context name and Engine ID in Request

On 28/08/07, <[email protected]> wrote:
> Do we need to configure "context Name" and "context Engine" somewhere 
> in snmpd.conf or it is automatically done for snmpv3 by Net-SNMP

If you want to use a non-default context, then yes - this needs to be configured.

See the FAQ entry
    How can I register a MIB module in a different (SNMPv3) context?
        http://www.net-snmp.org/wiki/index.php/FAQ:Coding_22

and the Wiki page
    http://www.net-snmp.org/wiki/index.php/Snmpd_proxy

for details.



> I have added following lines in snmpd.conf for authentication :
> defSecurityName     abc
> defAuthType            MD5
> defSecurityLevel       authPriv
> defAuthPassphrase  mysecretpass
> defPrivType              DES
> defPrivPassphrase    mypassphrase
> defVersion                3
> defContextName       context

Those lines belong in the file 'snmp.conf'
They are used for *client* side configuration, not the agent.



> and it works fine through command line when i give following :
>
> snmpwalk -v3 -u abc -l authPriv -a MD5 -A mysecretpass -x DES
>                          -X  mypassphrase localhost

Which is supplying most of these values explicitly, and does *not*
specify a context.   So you'll be using the default (blank) context.


> but through a MIB Browser(Mibbel GUI) it ask for "context Name" and 
> "Context Engine" ;
> -- if i keep it empty i get a response

Exactly as above


> -- If i enter something(context) i get a response : Timeout

Because you haven't configured anything for this context.



> do anything to be done in access specifiers in snmpd.conf
>
> I had searched a lot on this .. but was unable to find it Could u 
> please help in this

Bottom line - why are you trying to use contexts anyway?
It's not necessary in most cases.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/ _______________________________________________
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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/ _______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
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.