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; --===============0244850054== Content-Type: multipart/alternative; boundary="_0202-2142-43-PART-BREAK" --_0202-2142-43-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 02-02-2008
Masoud Fatollahy
 
Posts: n/a
Default RE: overwrite standard mib2/interfaces

--===============0244850054==
Content-Type: multipart/alternative; boundary="_0202-2142-43-PART-BREAK"

--_0202-2142-43-PART-BREAK
Content-Type: text/plain; charset="us-ascii"

Hi and thanks for the response,
Since it is not possible to add our own rows to the ifTable right now and we
don't know when this feature can be added to the net-snmp, I think it should
be nice and helpful to know the way to disable/exclude ifTable on net-snmp
and do everything in our subagent?

Thanks,

/Masoud


-----Original Message-----

From: "Mike Ayers" <mike_ayers@tvworks.com>

To: "Masoud Fatollahy" <masoudf@t2data.se>,
<net-snmp-users@lists.sourceforge.net>,
<net-snmp-coders@lists.sourceforge.net>

Date: Fri, 1 Feb 2008 10:38:12 -0800

Subject: RE: overwrite standard mib2/interfaces




> From: net-snmp-users-bounces@lists.sourceforge.net


> [mailto:net-snmp-users-bounces@lists.sourceforge.net] On


> Behalf Of Masoud Fatollahy


> Sent: Thursday, January 31, 2008 7:24 AM




> We are planning to find the best possible way to register our


> ports as interface in mib2/interfaces(if-mib/ifTable) table


> on net-snmp-5.4.1. since these ports are not seen by the


> linux system then we should include them to the interface


> list ourselves, but the idea is to keep net-snmp as it is and


> do not modify anything(modify as little as possible). in


> order to do this we have decided to use a sub-agent and


> AgentX to talk to net-snamp agent. the question is:


> How can we do this to achieve our goal?


> A answer which we are looking at right now is that remove


> registration of MIB2/Interfaces(if-mib/ifTable) and use our


> subagent to register all interface mibs and callbacks functions.


> Since you are the experties, I want to know your idea about this?




There is no need to clobber the entire ifTable. Simply register a row
for each port. You'll need to register each object in each row
individually, which is a bit of a pain, but that's the only real problem. I
don't know if there are helpers for this. I would recommend using very
large numbers for your ifIndex to keep clear of those generated by the MIB
module.



Hopefully, the ifTable implementation has a way to cooperatively add your
own rows, but I've never examined it. Anyone?





Thanks,



Mike

--_0202-2142-43-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-family: tahoma; font-size: 10pt;"><div style="font-family:
tahoma; font-size: 10pt;">Hi and thanks for the response,</div><div>Since it
is not possible to add our own rows to the ifTable right now and we don't
know when this feature can be added to the net-snmp, I think it should be
nice and helpful to know the way to disable/exclude ifTable&nbsp; on
net-snmp and do everything in our subagent? </div><div>&nbsp;</div><div>
Thanks,</div><div>&nbsp;</div><div>/Masoud<br>&nbsp;</div></font> <br>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px;
padding-left: 5px; margin-left: 5px; margin-right: 0px;"> -----Original
Message-----<br> From: "Mike Ayers" &lt;mike_ayers@tvworks.com&gt;<br> To:
"Masoud Fatollahy" &lt;masoudf@t2data.se&gt;,
&lt;net-snmp-users@lists.sourceforge.net&gt;,
&lt;net-snmp-coders@lists.sourceforge.net&gt;<br> Date: Fri, 1 Feb 2008
10:38:12 -0800<br> Subject: RE: overwrite standard mib2/interfaces<br> <br>
<div style="font-family: monospace,courier new,courier;"> &gt; From:
net-snmp-users-bounces@lists.sourceforge.net <br> &gt;
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On <br> &gt; Behalf Of
Masoud Fatollahy<br> &gt; Sent: Thursday, January 31, 2008 7:24 AM<br> <br>
&gt; We are planning to find the best possible way to register our <br> &gt;
ports as interface in mib2/interfaces(if-mib/ifTable) table <br> &gt; on
net-snmp-5.4.1. since these ports are not seen by the <br> &gt; linux system
then we should include them to the interface <br> &gt; list ourselves, but
the idea is to keep net-snmp as it is and <br> &gt; do not modify
anything(modify as little as possible). in <br> &gt; order to do this we
have decided to use a sub-agent and <br> &gt; AgentX to talk to net-snamp
agent. the question is:<br> &gt; How can we do this to achieve our goal? <br>
&gt; A answer which we are looking at right now is that remove <br> &gt;
registration of MIB2/Interfaces(if-mib/ifTable) and use our <br> &gt;
subagent to register all interface mibs and callbacks functions. <br> &gt;
Since you are the experties, I want to know your idea about this?<br> <br>
&nbsp; &nbsp;There is no need to clobber the entire ifTable. &nbsp;Simply
register a row for each port. &nbsp;You'll need to register each object in
each row individually, which is a bit of a pain, but that's the only real
problem. &nbsp;I don't know if there are helpers for this. &nbsp;I would
recommend using very large numbers for your ifIndex to keep clear of those
generated by the MIB module.<br> <br> &nbsp; &nbsp;Hopefully, the ifTable
implementation has a way to cooperatively add your own rows, but I've never
examined it. &nbsp;Anyone?<br> <br> <br> &nbsp; &nbsp;Thanks,<br> <br>
Mike<br> </div> </blockquote> </body>
</HTML>

--_0202-2142-43-PART-BREAK--



--===============0244850054==
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/
--===============0244850054==
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

--===============0244850054==--


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:49 PM.


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