• 1
Vitor Santos

Get the interface IP on the actual Interfaces datasource?

Question

Hello,

We were wondering if it would be possible to map the actual IP against the discovered interface(s)? - I'm referring specifically to the 'snmp64_If-' & 'snmpIf-' datasources

Our goal is to be able to add deviceA (that contains 5 interfaces for example) & quickly determine which IP is assigned to each interface (I know we can always check the configuration but, it's not that productive).
I also noticed that the device itself contains the 'system.ips' property but, we don't know which IP belongs to each interface.

Appreciate the feedback.

Regards,

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Should be doable by fetching the IP address table from the ipAddressEntry table at 1.3.6.1.2.1.4.34.1, however most of the test polls i did on my lab devices didn't have anything in those tables.  Do you know where you could fetch the IP addresses from?

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Stuart Weenig said:

Should be doable by fetching the IP address table from the ipAddressEntry table at 1.3.6.1.2.1.4.34.1, however most of the test polls i did on my lab devices didn't have anything in those tables.  Do you know where you could fetch the IP addresses from?

Thanks for the reply Stuart.

I tried that one as well with no luck.
Instead, we can retrieve it using '1.3.6.1.2.1.4.20.1' OID (doing a walk).

http://oid-info.com/get/1.3.6.1.2.1.4.20.1 - quick explanation over the different OIDs

The problem I faced is that it doesn't use the actual interface index (as used on the other OIDs - within the interfaces datasource)

Share this post


Link to post
Share on other sites
  • 0

Yeah, both those tables have their own index, which is not the ifIndex. However, the ifIndex is in both tables so you should be able to use it. You'd have to go to a scripted version of the DS though. If i recall, there is a new scripted interfaces DS out on the exchange, which might already do this or be customized to add it.

Share this post


Link to post
Share on other sites
  • 0

Hm, appears to not yet be released. It's been in the works for a while since it's the most heavily utilized datasource since it works for pretty much all device types. You could either give it time, or write your own.  I attempted something like this with this: https://github.com/sweenig/monitoring-recipes/blob/master/DataSources/Groovy/SNMP/Examples/ActiveDiscovery_with_properties_with_enumeration.groovy, but it's not scalable to very large devices. After about 200 interfaces it starts to timeout pretty bad. 

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Stuart Weenig said:

Hm, appears to not yet be released. It's been in the works for a while since it's the most heavily utilized datasource since it works for pretty much all device types. You could either give it time, or write your own.  I attempted something like this with this: https://github.com/sweenig/monitoring-recipes/blob/master/DataSources/Groovy/SNMP/Examples/ActiveDiscovery_with_properties_with_enumeration.groovy, but it's not scalable to very large devices. After about 200 interfaces it starts to timeout pretty bad. 

Hmm... yeah  probably we'll just wait for something official.
However, thanks again for the sharing. I'll poke on it once I've some free time 

Regards,

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.