Re: Commandline client to lookup MAC vendor
On Thu, Mar 7, 2024 at 4:06 AM Ralph Aichinger <ra@h5.or.at> wrote:
>
> Several packages in Debian can somehow (either by embedding it or
> querying it from some common database) display the MAC Vendor
> information of network adapters (derived from hardware addresses).
>
> One example is nmap, that displays the device vendor when scanning.
>
> Is there some commandline tool doing this directly in Debian? I know
> that there are websites that offer this as a service, but sometimes a
> CLI is more convenient.
>
> Alternatively, and if this information is stored in some shared
> databases, can this be queried e.g. from a Pyhton script? If so, how?
Here's a Python project that does what you want:
<https://github.com/bauerj/mac_vendor_lookup>. The update function
uses <https://standards-oui.ieee.org/oui/oui.txt> as Lee suggested.
Jeff
Reply to: