snmp

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

snmp defines a controller that can read two values via SNMP that returns the bandwidth. Typically for use with VDSL/ADSL modems where the bitrate may change.

Index

Constants

View Source
const (
	// ZyxelSNMPIngressOID is the OID used by Zyxel modems for the ingress rate.
	ZyxelSNMPIngressOID = "1.3.6.1.2.1.10.97.1.1.2.1.10.1"
	// ZyxelSNMPEgressOID is the OID used by Zyxel modems for the egress rate.
	ZyxelSNMPEgressOID = "1.3.6.1.2.1.10.97.1.1.2.1.10.2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

snmpController defines the local information for this controller.

func NewSNMPController

func NewSNMPController(ingressOID, egressOID, host string, data *datastore.Data, log *zap.SugaredLogger) Controller

NewSNMPController returns an instantiated SNMP controller.

func (Controller) Reconcile

func (s Controller) Reconcile() error

Reconcile defines the reconciliation loop.

func (Controller) ReconcileDelete

func (s Controller) ReconcileDelete()

ReconcileDelete defines what happens on shutdown.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL