Re: overwrite standard mib2/interfaces

This is a discussion on Re: overwrite standard mib2/interfaces within the SNMP Users forums, part of the Networking and Network Related category; On 18/03/2008, Masoud Fatollahy <masoud.fatollahy@t2data.se> wrote: > what should vi change in our ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2008
Dave Shield
 
Posts: n/a
Default Re: overwrite standard mib2/interfaces

On 18/03/2008, Masoud Fatollahy <masoud.fatollahy@t2data.se> wrote:
> what should vi change in our configuration below to allow cust1_grp and
> cust2_grp see our added mibs with context "my_context"?



> com2sec cust1_sec 192.168.55.0/24 public
> com2sec cust2_sec 192.168.56.0/24 public


Firstly, you need to use *different* community strings
for these two lines.

As it stands, the first directive says
"map a request coming in from the network 192.168.56.x
with the community 'public' to the internal name 'cust1_sec'"
and the second directive says
"map a request coming in from the network 192.168.56.x
with the community 'public' to the internal name 'cust2_sec'"

So if the agent receives a request from the network 192.168.56.x
with the community 'public' - what internal name should it
be mapped to???


But in answer to your question, try

com2sec -Cn my_context cust1_sec 192.168.55.0/24 public1
com2sec -Cn my_context cust2_sec 192.168.55.0/24 public2

And tweak the access lines:

> access cust1_grp "" any noauth exact cust1_v none none
> access cust2_grp "" any noauth exact cust2_v none none


to be

access cust1_grp "" any noauth prefix cust1_v none none
access cust2_grp "" any noauth prefix cust2_v none none

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0