https://github.com/fluepke/ethtool
Clone of https://gitlab.com/wobcom/ethtool
https://github.com/fluepke/ethtool
Last synced: 7 months ago
JSON representation
Clone of https://gitlab.com/wobcom/ethtool
- Host: GitHub
- URL: https://github.com/fluepke/ethtool
- Owner: Fluepke
- Created: 2021-01-09T22:16:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T22:19:25.000Z (over 4 years ago)
- Last Synced: 2025-02-02T01:33:50.429Z (8 months ago)
- Language: Go
- Size: 87.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# golang-ethtool
> **NOTE**: THIS IS A CLONE OF https://gitlab.com/wobcom/ethtool (duplicated to have a full list of open source stuff, that I wrote, on github)
Provides packages for interacting with the Linux kernel's ethtool ioctls.
Supports parsing transceiver's EEPROM data according to the standards:
* [SFF-8472](https://members.snia.org/document/dl/25916) rev 12.3
* [SFF-8636](https://members.snia.org/document/dl/26418) rev 4.9
* SFF-8463## Overview
* `eeprom/eeprom.go` provides a unified interface for different EEPROM types.
* `eeprom/sff8472/eeprom.go` provides the SFF-8472 implementation
* `eeprom/sff8636/eeprom.go` provides the SFF-8636 implementation, which is also used for decoding SFF8463 eeproms.## Usage
### Included basic example
A minimal example is included:
```bash
go get ./...
cd example
go build
```
It allows for parsing the EEPROM contents of a given and dumps them to STDOUT: `./example --interface swp42`### Transceiver exporter
[Prometheus exporter](https://gitlab.com/wobcom/transceiver-exporter) based on this package.## Authors
* @fluepke