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: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============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 on net-snmp and do everything in our subagent? </div><div> </div><div> Thanks,</div><div> </div><div>/Masoud<br> </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" <mike_ayers@tvworks.com><br> To: "Masoud Fatollahy" <masoudf@t2data.se>, <net-snmp-users@lists.sourceforge.net>, <net-snmp-coders@lists.sourceforge.net><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;"> > From: net-snmp-users-bounces@lists.sourceforge.net <br> > [mailto:net-snmp-users-bounces@lists.sourceforge.net] On <br> > Behalf Of Masoud Fatollahy<br> > Sent: Thursday, January 31, 2008 7:24 AM<br> <br> > We are planning to find the best possible way to register our <br> > ports as interface in mib2/interfaces(if-mib/ifTable) table <br> > on net-snmp-5.4.1. since these ports are not seen by the <br> > linux system then we should include them to the interface <br> > list ourselves, but the idea is to keep net-snmp as it is and <br> > do not modify anything(modify as little as possible). in <br> > order to do this we have decided to use a sub-agent and <br> > AgentX to talk to net-snamp agent. the question is:<br> > How can we do this to achieve our goal? <br> > A answer which we are looking at right now is that remove <br> > registration of MIB2/Interfaces(if-mib/ifTable) and use our <br> > subagent to register all interface mibs and callbacks functions. <br> > Since you are the experties, I want to know your idea about this?<br> <br> 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.<br> <br> Hopefully, the ifTable implementation has a way to cooperatively add your own rows, but I've never examined it. Anyone?<br> <br> <br> 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==-- |