Provides packages for interacting with the Linux kernel's ethtool ioctls. Supports parsing transceiver's EEPROM data according to the standards:
eeprom/eeprom.go
provides a unified interface for different EEPROM types.eeprom/sff8472/eeprom.go
provides the SFF-8472 implementationeeprom/sff8636/eeprom.go
provides the SFF-8636 implementation, which is also used for decoding SFF8463 eeproms.
A minimal example is included:
go get ./...
cd example
go build
It allows for parsing the EEPROM contents of a given and dumps them to STDOUT: ./example --interface swp42
Prometheus exporter based on this package.
- @fluepke
- @vidister