An open API service indexing awesome lists of open source software.

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

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