Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sir-go/snmp-pps-get
CLI tool gets pps via snmp by switch ip
https://github.com/sir-go/snmp-pps-get
cli go golang network snmp
Last synced: 21 days ago
JSON representation
CLI tool gets pps via snmp by switch ip
- Host: GitHub
- URL: https://github.com/sir-go/snmp-pps-get
- Owner: sir-go
- Created: 2022-10-22T08:05:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T07:39:49.000Z (about 2 years ago)
- Last Synced: 2024-11-06T22:08:34.553Z (2 months ago)
- Topics: cli, go, golang, network, snmp
- Language: Go
- Homepage:
- Size: 468 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CLI tool for monitoring PPS on the D-Link switches by ports
[![Go](https://github.com/sir-go/snmp-pps-get/actions/workflows/go.yml/badge.svg)](https://github.com/sir-go/snmp-pps-get/actions/workflows/go.yml)CLI utility periodically gets packets-per-second statistic of given devices and print it as a table.
## Build
```bash
go test ./...
gosec ./...
go mod download && go build -o pps ./cmd/cli
```## Flags
` : ... ` - target switches IP addresses, can be an IP or IP:ports-range, i.e.:
`10.10.0.1 10.15.0.12:1-5 192.168.28.26:14,17,20-25`## Config
`config.yml` must be located in the same directory. It contains the array of SNMP OIDs for getting metrics
(TX and RX PPS) by the switch model name and default values.## Usage
```bash
pps : ...
```![](pps.gif)