Skip to main content

Summary

Fetch and generate ethercodes data for arpwatch.

Description

Fetch current IEEE MA-L Assignments file (oui.csv) from IEEE.org, and generate ethercodes.dat for arpwatch consumption.

Fetch oui.csv only, if the timestamp is newer (unless --force is given). Similar, generate ethercodes.dat only, if the timestamps don't match (again, unless --force is given). Use option --keep to (re)generate ethercodes.dat from an existing oui.csv.

Notes

The timestamps of oui.csv fluctuate in a 2 seconds range(!). Therefore compensate the fluctuation by taking a deltat tolerance factor into account.

Usage

Usage: fetch-ethercodes.py [-hVvfkt][-T sec][-O ouifile][-o outfile][-p spec]
       -h, --help           this message
       -V, --version        print version and exit
       -v, --verbose        verbose mode (cumulative)
       -f, --force          force operation
       -k, --keep           keep existing http://standards-oui.ieee.org/oui/oui.csv
       -t, --timestamp      print timestamp
       -T, --deltat sec     tolerance in timestamp comparison
                            (default: 2.5 sec.)
       -O, --ouifile file   IEEE.org host
                            (default: http://standards-oui.ieee.org/oui/oui.csv)
       -o, --outfile file   arpwatch ethercodes
                            (default: ethercodes.dat)
       -p, --patch spec     patch specfile with updated timestamp

Example run

$ fetch-ethercodes.py -v
check http://standards-oui.ieee.org/oui/oui.csv
oui file size: 2264884
oui file date: Wed, 26 Sep 2018 08:06:13 GMT
no local file oui.csv found
fetch http://standards-oui.ieee.org/oui/oui.csv
no local file ethercodes.dat found
parse oui.csv
value 0:1:c8 exists already: "THOMAS CONRAD CORP.", "CONRAD CORP."
value 8:0:30 exists already: "NETWORK RESEARCH CORPORATION", "ROYAL MELBOURNE INST OF TECH"
value 8:0:30 exists already: "NETWORK RESEARCH CORPORATION", "CERN"
generate ethercodes.dat with 25433 entries
successful
timestamp: 20180926_080613

An additional tool query-ethercodes.py is provided, that allows to query the ethercodes.dat database.

Metadata

Release files for fetch-ethercodes 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fetch-ethercodes 0.5
File Size Uploaded
fetch-ethercodes-0.5.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fetch-ethercodes 0.5
File Interpreter ABI Platform
fetch_ethercodes-0.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.4 kB

Release files / fetch-ethercodes-0.5.tar.gz

Download URL fetch-ethercodes-0.5.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7107b94d80991b2940bd904d8f33c8419c222c7f08b1b1748be11b60e807d051
BLAKE2b-256 checksum
How to use checksums
546d0b8076a49aa3f4187264c76f9c9237823e1fcbc87a6b8ee683193edc96a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.5

Release files / fetch_ethercodes-0.5-py2.py3-none-any.whl

Download URL fetch_ethercodes-0.5-py2.py3-none-any.whl
Size 6.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0e69d429da37047f1e420befb1a89209e9b9a7ceb21f5e4fd6e4742fce42a160
BLAKE2b-256 checksum
How to use checksums
73a551403c06ae98b3410532b6a8a1b2add5b6d30f809fd9e8642cb1e7051d99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page