Get IP-addresses and names of hosts attached to Switchports
Boris Fischer <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am writing a script that collects data from my network. I am trying to find SNMP-command(s) that returns IP-addresses and hostnames of hosts attached to the different switchports on my switches, like the following command for the MAC-addresses. I am using HP Procurve 5300 series Switches! command: root@earth:/usr/local/net-snmp/bin # snmpwalk -c public <Switch IP or name> .1.3.6.1.2.1.17.4.3.1.1 output: SNMPv2-SMI::mib-2.17.4.3.1.1.0.0.28.182.27.202 = Hex-STRING: 00 00 1C B6 1B DF SNMPv2-SMI::mib-2.17.4.3.1.1.0.0.72.176.54.116 = Hex-STRING: 00 00 48 ED 36 74 SNMPv2-SMI::mib-2.17.4.3.1.1.0.0.167.19.203.57 = Hex-STRING: 00 07 A7 13 CB 39 SNMPv2-SMI::mib-2.17.4.3.1.1.0.0.170.144.83.254 = Hex-STRING: 00 08 AA 90 53 FE can anyone help me with that? It would also be interestig which mib I should use! Thank you! ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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