{"id":48726113,"url":"https://github.com/ttl256/euivator","last_synced_at":"2026-04-11T22:49:41.529Z","repository":{"id":272784077,"uuid":"917747232","full_name":"ttl256/euivator","owner":"ttl256","description":"A CLI tool to work with EUIs","archived":false,"fork":false,"pushed_at":"2025-10-19T21:27:12.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T03:53:46.492Z","etag":null,"topics":["cli","cli-app","eui","eui-48","eui-64","golang","golang-cli","mac","mac-address","oui","oui-search","ouilookup"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ttl256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-16T15:16:44.000Z","updated_at":"2025-10-19T21:27:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"de8caa1e-b915-43c6-853a-f6b1f5a182e1","html_url":"https://github.com/ttl256/euivator","commit_stats":null,"previous_names":["ttl256/euivator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ttl256/euivator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttl256%2Feuivator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttl256%2Feuivator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttl256%2Feuivator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttl256%2Feuivator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttl256","download_url":"https://codeload.github.com/ttl256/euivator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttl256%2Feuivator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31698152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"ssl_error","status_checked_at":"2026-04-11T21:17:24.556Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-app","eui","eui-48","eui-64","golang","golang-cli","mac","mac-address","oui","oui-search","ouilookup"],"created_at":"2026-04-11T22:49:40.787Z","updated_at":"2026-04-11T22:49:41.516Z","avatar_url":"https://github.com/ttl256.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub Release](https://img.shields.io/github/v/release/ttl256/euivator?link=https%3A%2F%2Fgithub.com%2Fttl256%2Feuivator%2Freleases)\n[![Audit](https://github.com/ttl256/euivator/actions/workflows/audit.yaml/badge.svg)](https://github.com/ttl256/euivator/actions/workflows/audit.yaml)\n[![Release](https://github.com/ttl256/euivator/actions/workflows/release.yaml/badge.svg)](https://github.com/ttl256/euivator/actions/workflows/release.yaml)\n\n# euivator\n\nA CLI tool to work with EUIs\n\n- Work with EUIs\n  - Verify whether a given string is a valid EUI\n  - Convert an EUI to a specified format: colon, dash, dot, plain\n  - Produce an EUI-64 modified from an EUI-48\n  - Supply an IPv6 prefix and EUI-48/EUI-64 to produce an IPv6 address\n- Work with OUIs\n  - Provide an EUI or just a hex prefix to look it up in IEEE registries to\n    determine which company owns a particular OUI allocation\n\n## Design features\n\n- Regular CLI tool behavior: accept arguments from the standard input or as\n  positional arguments and output results to the standard output in a form that is\n  digestible by other CLI tools (like `awk`, `jq`)\n- Offline OUI lookup. euivator uses [public\n  registries](https://standards.ieee.org/products-programs/regauth/) to collect\n  text files with OUI allocations. The files are stored locally\n- Although the files in the repositories are not static, they change quite\n  rarely. But when they do change it's necessary to download ~5MB of data. The\n  update process is manual: `euivator oui update`. To minimize impact on the\n  network euivator implements client-side caching using ETags. (there are\n  [issues](#ieee-etags-and-two-smoking-nodes) with caching on the IEEE side)\n- Local cache is stored according to XDG specification powered by [adrg's\n  library](https://github.com/adrg/xdg) but the target directory is configurable\n- The result of an OUI lookup returns a list of allocations since IEEE allows\n  duplicate allocations and euivator does not play god by trying to decide which\n  one is correct\n- The OUI lookup performed in the longest prefix match manner\n\n## Install\n\n### Binary release\n\nThe following command installs the latest version to `~/.local/bin`\n\n```sh\ncurl -sSfL https://raw.githubusercontent.com/ttl256/euivator/HEAD/install.sh | sh -s -- -b ~/.local/bin\n```\n\n```\nUsage: install.sh [-b \u003cbindir\u003e] [-d] [\u003ctag\u003e]\n  -b sets bindir or installation directory, Defaults to ./bin\n  -d turns on debug logging\n   \u003ctag\u003e is a tag from\n   https://github.com/ttl256/euivator/releases\n   If tag is missing, then the latest will be used.\n```\n\n### MacOS (brew)\n\n```sh\nbrew tap ttl256/euivator \u0026\u0026 \\\nbrew install euivator\n```\n\n### Linux\n\n#### APT/DEB\n\n```sh\necho \"deb [trusted=yes] https://apt.fury.io/ttl256/ /\" \u003e /etc/apt/sources.list.d/ttl256.fury.list \u0026\u0026 \\\napt update \u0026\u0026 \\\napt install euivator\n```\n\n#### YUM/RPM\n\n```sh\ncat \u003c\u003cEOF \u003e\u003e /etc/yum.repos.d/ttl256.fury.repo\n[fury-ttl256]\nname=ttl256\nbaseurl=https://yum.fury.io/ttl256/\nenabled=1\ngpgcheck=0\nEOF\n\nyum update \u0026\u0026 \\\nyum install euivator\n```\n\n### Build from source\n\n```sh\nmake build\n```\n\n## After installation\n\nOUI registries are not downloaded as part of the post-install to not mess users\nwho just want to convert EUIs without OUI lookups.\n\nDownload OUI registries\n\n```sh\neuivator oui update\n```\n\n## Examples\n\n```sh\n# Convert EUIs\n$ euivator eui convert --format dot DE:AD:BE:EF:11:22\ndead.beef.1122\n$ echo \"DEADBEEF1122\\nDE:AD:BE:EF:11:22:33:44\" | euivator eui convert --format dash\nde-ad-be-ef-11-22\nde-ad-be-ef-11-22-33-44\n# Generate EUI-64 modified\n$ euivator eui modified DEADBEEF1122\ndc:ad:be:ff:fe:ef:11:22\n# Generate IPv6 address from a prefix and an EUI\n$ euivator eui addr6 2001:db8:dead:beef::/64 00:00:00:00:00:00\n2001:db8:dead:beef:200:ff:fe00:0\n# Lookup OUI allocation by EUI\n$ euivator oui lookup 28:6f:b9:11:22:33 | jq\n{\n  \"input\": \"286FB9112233\",\n  \"input_raw\": \"28:6f:b9:11:22:33\",\n  \"records\": [\n    {\n      \"assignment\": \"286FB9\",\n      \"registry\": \"MA-L\",\n      \"org_name\": \"Nokia Shanghai Bell Co., Ltd.\",\n      \"org_address\": \"No.388 Ning Qiao Road,Jin Qiao Pudong Shanghai Shanghai   CN 201206\"\n    }\n  ]\n}\n# Lookup OUIs for interfaces on your machine\n$ ifconfig | awk '/ether/ {print $2}' | euivator oui lookup | jq -c 'select(.records | length \u003e 0)'\n```\n\n## IEEE, ETags and two smoking nodes\n\nPosted the\n[issue](https://www.reddit.com/r/IEEE/comments/1i82j5i/mac_address_registry_serves_csv_files_in_a_way/)\nto r/IEEE. No luck so far.\n\nTLDR; IEEE uses default nginx config to generate ETags. The algorithm takes\nlast-modified and content-length headers as an input to generate ETag. Multiple\nnodes serve the files and last-modified differs for each of them by a few\nseconds.\n\n## Configuration\n\nRefer to `configs/euivator.yaml.sample` to check available options. Same options\nare available via environment variables in the form of `EUIVATOR_*`.\n\n## Similar software\n\n- [oui](https://github.com/thatmattlove/oui)\n  - Does not accept arguments from the standard input\n  - Output is pretty-table-formatted which makes it hard to pipeline with other\n    CLI tools\n  - Does not cache OUI registries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttl256%2Feuivator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttl256%2Feuivator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttl256%2Feuivator/lists"}