All Apps and Add-ons

TA-maclookup fails when "No Vendor Exists" for a MAC address

mark_wymer
Path Finder

Hi,

Similar to a previous question, under certain circumstances the maclookup fails with an error message:

command="maclookup", : failed to use the netaddr module!

After a bit of digging (and a reference in a previous question) this appears to happen when a MAC address is not found in any lists online or offline.

Fails:

| makeresults | eval src_mac="0A:58:0A:F4:01:01" | maclookup

Works:

| makeresults | eval src_mac="00:50:56:AB:64:11" | maclookup

In these instances, shouldn't the script return something like "Unknown Vendor"?

Regards,
Mark.

0 Karma

nickhills
Ultra Champion

Hello, I added the tag for "Add-On for MAC lookup" to you question. This means that the author of the app should be notified of your question.

If my comment helps, please give it a thumbs up!
0 Karma

lakshman239
Influencer

You could also address this issue, by adding something like the below on your local/props.conf to force unknown to vendor field, so your command [assuming depends on vendor] may work.

[sourcetypeof_the_addon]
EVAL-vendor=coalesce(vendor,"Unknown")
0 Karma

mark_wymer
Path Finder

Hi Lakshman,

Thanks for the response - I'll try it out.

I suspect, though, that it's the actual python script that can't handle an 'unknown' response from macvendors.co

If you have a number of mac addresses to look up, the 1st one that 'fails' causes the entire search string to stop.

Regards,
Mark.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...