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: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============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> </DIV> <DIV>Now everything is clear thank you very much,</DIV> <DIV> </DIV> <DIV>my last questions:</DIV> <DIV>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?</DIV> <DIV> </DIV> <DIV> Regards,</DIV> <DIV> </DIV> <DIV>/Masoud<BR> </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" <D.T.Shield@liverpool.ac.uk><BR> To: "Masoud Fatollahy" <masoud.fatollahy@t2data.se><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 <masoud.fatollahy@t2data.se> wrote:<BR>> so if i used different cummonity name I will give read access to both<BR>> 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> com2sec cust1_sec 192.168.55.0/24 public1d<BR> com2sec -Cn my_context cust1_sec 192.168.55.0/24 public1m<BR><BR><BR> Requests using the community string "public1d" will be mapped<BR>to the default context ("").<BR> 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==-- |