Thnaks for the inputs.

By using the following lines in the snmpd.conf, I am able to restrict
the access based on the SNMP version used

com2sec public  default public
group   public  v2c     public
view    all     included        .1
access  public  ""      v2c    noauth  exact   all     none    none

Now only public community of SNMP v2c can only access the SNMP agent
values.

Also thanks for the descriptive help in Manpage of SNMPD.CONF.

I was under impression that I could be able to achieve it using
'defVersion' directive :))


SrIdhar


On Fri, 26 Nov 2004 14:32:12 -0500, "Robert Story" <[EMAIL PROTECTED]>
said:
> On Wed, 24 Nov 2004 10:41:44 +0530 Sridhar wrote:
> SS> [...] forcing the SNMP agent to re-read the new configuraiton file
> [...].
> SS> But I couldn't set the SNMP version to operate. I tried by setting
> SS> 'defVersion' token to 1 and v2c but no use. 
> 
> This token is only for the library and command line applications.
> 
> SS> What I am expecting is if I set the defVersion to v1 and start the
> agent
> SS> should respond to only v1 queries. Same should happen with v2c and
> v3. 
> SS> 
> SS> Please let me know how can I go about in achieving it?
> 
> No, you have to be creative with the use of access control to dynamically
> limit
> the agent to certain protocols.
> 
> -- 
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
> Archive:
> <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
> 
> You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.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

Reply via email to