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; --===============0645356707== Content-Type: multipart/alternative; boundary="_0319-1314-04-PART-BREAK" --_0319-1314-04-PART-BREAK Content-Type: ...


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
Masoud Fatollahy
 
Posts: n/a
Default Re: overwrite standard mib2/interfaces

--===============0645356707==
Content-Type: multipart/alternative; boundary="_0319-1314-04-PART-BREAK"

--_0319-1314-04-PART-BREAK
Content-Type: text/plain; charset="us-ascii"

Hi Dave,

Now everything is clear thank you very much,

my last questions:
is it possible to chnage the default context which is used in net-snmp for a
mib node e.g mibII? if yes, how can it be done? is there any API to do this?
or should i go in the code and change it in the hard way?

Regards,

/Masoud



-----Original Message-----
From: "Dave Shield" <D.T.Shield@liverpool.ac.uk>
To: "Masoud Fatollahy" <masoud.fatollahy@t2data.se>
Cc: net-snmp-users@lists.sourceforge.net
Date: Wed, 19 Mar 2008 10:28:14 +0000
Subject: Re: overwrite standard mib2/interfaces


On 19/03/2008, Masoud Fatollahy <masoud.fatollahy@t2data.se> wrote:
> so if i used different cummonity name I will give read access to both
> default context "" and "my_context" to v1 and v2c clients.


If you want to grant access to both the default context ("") and
your new "my_context", then you will need to configure different
community strings for each one:

com2sec cust1_sec 192.168.55.0/24 public1d
com2sec -Cn my_context cust1_sec 192.168.55.0/24 public1m


Requests using the community string "public1d" will be mapped
to the default context ("").
Requests using the community string "public1m" will be mapped
to the new context ("my_context").

And similarly for "cust2_sec2"

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

--_0319-1314-04-PART-BREAK
Content-Type: text/html; charset="us-ascii"

<HTML>
<HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE title="table borders">.htmtableborders, .htmtableborders td,
..htmtableborders th {border : 1px dashed lightgrey ! important;} </STYLE>
<STYLE type=text/css>html, body { border: 0px; } span.macro, span.macro ul,
span.macro div, span.macro p {background : #CCCCCC;} </STYLE> <STYLE
type=text/css> p{margin-bottom: 0.15em;margin-top:
0.15em;}body{font-family:tahoma;font-size:10pt;}; </STYLE> </HEAD> <BODY>
<FONT style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma"> <DIV>Hi Dave,</DIV> <DIV>
&nbsp;</DIV> <DIV>Now everything is clear thank you very much,</DIV> <DIV>
&nbsp;</DIV> <DIV>my last questions:</DIV> <DIV>is it possible to chnage the
default context which is used in net-snmp for a&nbsp;mib node e.g mibII? if
yes, how can it be done? is there any API to do this? or should i go in the
code and change it in the hard way?</DIV> <DIV>&nbsp;</DIV> <DIV>
Regards,</DIV> <DIV>&nbsp;</DIV> <DIV>/Masoud<BR>&nbsp;</DIV></FONT><BR>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">-----Original
Message-----<BR>From: "Dave Shield" &lt;D.T.Shield@liverpool.ac.uk&gt;<BR>
To: "Masoud Fatollahy" &lt;masoud.fatollahy@t2data.se&gt;<BR>Cc:
net-snmp-users@lists.sourceforge.net<BR>Date: Wed, 19 Mar 2008 10:28:14
+0000<BR>Subject: Re: overwrite standard mib2/interfaces<BR><BR> <DIV
style="FONT-FAMILY: monospace, courier new, courier">On 19/03/2008, Masoud
Fatollahy &lt;masoud.fatollahy@t2data.se&gt; wrote:<BR>&gt; so if i used
different cummonity name I will give read access to both<BR>&gt; default
context "" and "my_context" to v1 and v2c clients.<BR><BR>If you want to
grant access to both the default context ("") and<BR>your new "my_context",
then you will need to configure different<BR>community strings for each
one:<BR><BR>&nbsp; &nbsp;com2sec &nbsp; &nbsp; &nbsp;cust1_sec &nbsp;
192.168.55.0/24 public1d<BR>&nbsp; &nbsp;com2sec &nbsp; -Cn my_context
&nbsp; &nbsp;cust1_sec &nbsp; 192.168.55.0/24 public1m<BR><BR><BR>&nbsp;
&nbsp;Requests using the community string "public1d" will be mapped<BR>to
the default context ("").<BR>&nbsp; &nbsp;Requests using the community
string "public1m" will be mapped<BR>to the new context ("my_context").<BR>
<BR>And similarly for "cust2_sec2"<BR><BR>Dave<BR><BR>
-------------------------------------------------------------------------<BR>
This SF.net email is sponsored by: Microsoft<BR>Defy all challenges.
Microsoft(R) Visual Studio 2008.<BR><A
href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target=_blank>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</A><BR>
_______________________________________________<BR >Net-snmp-users mailing
list<BR>Net-snmp-users@lists.sourceforge.net<BR>Please see the following
page to unsubscribe or change other options:<BR><A
href="https://lists.sourceforge.net/lists/listinfo/net-snmp-users"
target=_blank>https://lists.sourceforge.net/lists/listinfo/net-snmp-users</A>
<BR><BR></DIV></BLOCKQUOTE></BODY>
</HTML>

--_0319-1314-04-PART-BREAK--



--===============0645356707==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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/
--===============0645356707==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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

--===============0645356707==--


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 02:05 AM.


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