HI,

Have you thought of doing any of the following:
  1) saving the mappings in the config file
  2) hashing the value of the description text,
     resulting in a value between 1 and 2^31-1

Regards,
/david t. perkins

On Wed, 14 Jun 2006, Wes Hardaker wrote:
> >>>>> On Tue, 13 Jun 2006 22:10:05 +0530, <[EMAIL PROTECTED]> said:
> 
> santhosh> How ifIndex value of ifTable in net-snmp-5.2.1 (on Linux )
> santhosh> is populated?. Form the mibII group implementation, SNMP
> santhosh> agent initializes ifTable columns by reading /proc/net/dev
> santhosh> file.  But how the ifIndex value is initialized? Is it in
> santhosh> the same order of data present in /proc/net/dev?
> 
> It's based on reading that file as well as noticing when things appear
> or disappear from it (and thus, once the agent is running eth0 should
> be the same number from that time till it shuts down).
>       
> santhosh> Is there a way to fix an ifIndex for particular index (i.e
> santhosh> ifIndex.2 should always refer wireless instead of eth0 ) ?
> 
> Not currently.  We've talked about trying to force a particular
> interface to always be at the same number, but unfortunately we don't
> do that currently (nor do most other agents as the MIB doesn't require
> it).
> 
> Good managers can actually do things like create graphs based on a
> different index.  EG, in Net-Policy (sorry for the shameless plug) you
> can create a graph based on ifDescr == eth0 instead of having to do it
> solely based on the ifindex.
> -- 
> Wes Hardaker
> Sparta, Inc.
> 
> 
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> 



_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to