On Tue, 13 Jun 2006 22:10:05 +0530 [EMAIL PROTECTED] wrote:
SSC>    How ifIndex value of ifTable in net-snmp-5.2.1 (on Linux ) is
SSC> populated?. Form the mibII group implementation, SNMP agent initializes
SSC> ifTable columns by reading /proc/net/dev file.  But how the ifIndex
SSC> value is initialized? Is it in the same order of data present in
SSC> /proc/net/dev?

It varies by release. I think 5.2.1 on Linux is based on the order in that
file. However Linux 5.3.x is actually based on what kernel reports.

I can't remember the details, but I remember in some incarnation in the past
the index was created sequentially based on this file, which resulted in
ifIndex numbers changing during runtime as interfaces were brought up/removed.

SSC>    Is there a way to fix an ifIndex for particular index (i.e
SSC> ifIndex.2 should always refer wireless instead of eth0 ) ?

I know I've seen a way to tie the textual interface name of an interface on
Fedora, using some mapping feature. But I don't know how that would affect the
various implementations, if at all.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


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

Reply via email to