Ad Widget

Collapse

OID for IP Address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimbrewski
    Junior Member
    • Sep 2010
    • 16

    #1

    OID for IP Address

    Have spent several hours on Google trying to figure out if there is an OID that will show the IP address of an interface without including the IP address in that OID. This is on an ASA5505 but would be applicable to just about any Cisco device -- switch, router, firewall, etc.

    Would be nice to have a one stop shop that shows the viewer a lot of information about a particular device -- including the IP addresses of all the interfaces without already needing to know them up front.

    For instance they would look up a device by device type and location as configured in Zabbix. They wouldn't need to know anything about the subnets or any of that. Just that it is an ASA5505 at Podunk. Then they could get the information they need about that device from the Latest Data display.

    However, I have not yet figured out an OID -- if there is one -- that will return the IP address for each interface without already knowing it. This would include vlan interfaces, ethernet interfaces, serial interfaces, etc., etc., etc.

    I'll keep plugging in various OIDs and testing until they come up as Not Supported to see if I can figure out one that works. The snmpwalk I did on the device shows .1.3.6.1.2.1.4.20.1.1.10.83.0.1 but -- again -- that already includes the IP address. I want to get that address via snmp without already knowing it. Is that too much to ask? Perhaps it is.

    Many thanks in advance for any information you may have on this.
  • Petrokis
    Junior Member
    • Jul 2012
    • 7

    #2
    Maybe this link can help you.

    https://supportforums.cisco.com/thread/178390

    I believe it is necessary to create a script to collect the data and then view on Zabbix.

    Comment

    • jimbrewski
      Junior Member
      • Sep 2010
      • 16

      #3
      Thank You, Petrokis. I will give that a try although I did already find that particular web page during my search and haven't yet been able to apply its information to my problem. Again, thank you for replying.

      Comment

      • Petrokis
        Junior Member
        • Jul 2012
        • 7

        #4
        no problem .. it's a community.
        Good luck ... if you get something, post here.

        Comment

        • jorlando
          Junior Member
          • Jun 2020
          • 1

          #5
          A very old thread, but I got here with the same problem: how to get the IP addresses of some Cisco devices.

          The OID is .1.3.6.1.2.1.4.20.1.1 (RFC1213-MIB::ipAdEntAddr)

          If you perform a snmpwalk you'll get the physical interfaces IP addresses.

          So I got stuck with the same problem as jimbrewski , how to get a value if I was supposed to pass that same value before the query? Started playing with options and got success

          In Zabbix I created a SNMP v1 discovery rule with one item prototype.

          On the discovery rule on the SNMP OID field I put the value
          Code:
          discovery[{#IFDESCR}, 1.3.6.1.2.1.4.20.1.1]
          on the Item prototype I had to put on the field SNMP OID
          Code:
          1.3.6.1.2.1.4.20.1.1.{#IFDESCR}
          and the type as character, log or text (numerical values gave error since the answer is a string).

          On Zabbix latest data I would get something like this:

          Code:
           [TABLE]
          [TR]
          [TD][/TD]
          [TD]pptp.router[/TD]
          [TD="colspan: 5"][B]Network Interfaces IP Addresses[/B] (4 Items)[/TD]
          [/TR]
          [TR]
          [TD][/TD]
          [TD][/TD]
          [TD][/TD]
          [TD]Interface IP Address[/TD]
          [TD]2020-06-04 01:14:23[/TD]
          [TD]10.0.47.30[/TD]
          [TD][/TD]
          [TD]History[/TD]
          [/TR]
          [TR]
          [TD][/TD]
          [TD][/TD]
          [TD][/TD]
          [TD]Interface IP Address[/TD]
          [TD]2020-06-04 01:14:23[/TD]
          [TD]10.150.161.161[/TD]
          [TD][/TD]
          [TD]History[/TD]
          [/TR]
          [TR]
          [TD][/TD]
          [TD][/TD]
          [TD][/TD]
          [TD]Interface IP Address[/TD]
          [TD]2020-06-04 01:14:23[/TD]
          [TD]10.191.67.6[/TD]
          [TD][/TD]
          [TD]History[/TD]
          [/TR]
          [TR]
          [TD][/TD]
          [TD][/TD]
          [TD][/TD]
          [TD]Interface IP Address[/TD]
          [TD]2020-06-04 01:14:23[/TD]
          [TD]172.19.67.205[/TD]
          [TD][/TD]
          [TD]History[/TD]
          [/TR]
          [/TABLE]
          I hope that next person that gets here leave with a solution! :-)

          Comment

          Working...