RE: overwrite standard mib2/interfaces

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC07DCA0E2@mailserver.metatv-ds.metatv.com>
> From: [email protected] 
> [mailto:[email protected]] 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

-------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.