More explanation:   The 192.168.199.9 IP address below is not
represented in the net-snmp agent on the RedHat ES3 box.

There are multi addressed interfaces on linux boxes that are pingable
that I can not discover unless there is a static route (Routing table)
or they have a tcp or udp port bound to that address (tcp table).  I
want to know if a configuration issue happens and the secondary
addresses stop responding but first I have to discover them.

Is there a way to tell Net-SNMP to represent this?

[r...@smarts mdougher]# ifconfig -a |egrep "inet|eth|lo" |grep -v inet6
eth0      Link encap:Ethernet  HWaddr 00:06:5B:01:13:E1  
          inet addr:192.168.1.150  Bcast:192.168.1.255
Mask:255.255.255.0
eth0:0    Link encap:Ethernet  HWaddr 00:06:5B:01:13:E1  
          inet addr:192.168.199.9  Bcast:192.168.199.255
Mask:255.255.255.0
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0


r...@lab:~# snmpwalk -v 1 -c public 192.168.1.150 ifDescr
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0

r...@lab:~# snmpwalk -v 1 -c public 192.168.1.150 ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.1.150 = INTEGER: 2
r...@lab:~# snmpwalk -v 1 -c public 192.168.1.150 tcpConnRemPort
TCP-MIB::tcpConnRemPort.0.0.0.0.22.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.111.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.199.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.6000.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.32768.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.127.0.0.1.25.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.127.0.0.1.631.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.127.0.0.1.32769.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.192.168.1.150.22.192.168.1.30.55581 = INTEGER:
55581






On Wed, 2010-01-13 at 11:04 -0500, Matthew Dougherty wrote:

> The only way I can find a subinterface IP address via SNMP is on the
> routing or TCP tables if there is a live connection.
> 
> Is there a way to tell net-snmp  5.0.9 on RedHat ES 3 to show
> subinterface IPs.
> 
> It's one thing to not show eth0:1 on the interfaces table but to not
> show the IP in the ipAddr table is a problem.  How can I get the agent
> to either add eth0:1 to the interfaces table or add the IP to the
> ipAddr table as an address of eth0?
> 
> Matt.
> 
> Matthew Dougherty
> [email protected]
> 
> 



Matthew Dougherty
[email protected]
973-325-8556
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
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

Reply via email to