RE: help with
"Mike Ayers" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <83E753BE7B6A324ABB336245BAF1DAAC07B44E36@mailserver.metatv-ds.metatv.com> |
> From: [email protected] > [mailto:[email protected]] On > Behalf Of Jon Sabo > Sent: Friday, January 04, 2008 1:43 PM > I have two hosts that I'm want to check the state of the interfaces, > up or down, on and for some reason the ifOperSTatus ordering doesn't > match. I have a lot of servers that use this check and just one box > that doesn't match up. How do I either set this and make it > permanent following reboots or change the mapping in someway? You can't[1], nor should you be able to. The ifIndex is not tied to the interface in any way, despite the fact that order of operations usually causes the same index to be assigned to each interface. You should not rely on this behavior, however. Rather, you should use an address[2] to match the row, which will give consistent behavior in all cases. HTH, Mike [1] - Actually, I don't know for a fact that there isn't a way to do this with net-snmp. My response is based on the IF MIB specification and good network management principles. [2] - You may want to use the physical(ethernet) or logical(IP) address, depending on what kind of behavior you would like should the interface card fail and be replaced, DHCP, etc. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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