> 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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to