example

package
v0.0.0-...-ae8e442 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkWalk

type BulkWalk interface {
	Run()
}

type BulkWalkSnmp

type BulkWalkSnmp struct {
}

func (*BulkWalkSnmp) BulkWalk

func (b *BulkWalkSnmp) BulkWalk(target string, oid string, community string)

BulkWalk is BulkWalk

func (*BulkWalkSnmp) Run

func (b *BulkWalkSnmp) Run()

Run prepares the sample data and sets the Goroutine parameters. TODO: Receive sample configuration parameters.

type GetSnmp

type GetSnmp interface {
	Run()
}

type GetersonSnmp

type GetersonSnmp struct {
}

func (*GetersonSnmp) Get

func (g *GetersonSnmp) Get(host string, oids []string, community string, wg *sync.WaitGroup, resp chan<- string)

Get is an example of how to get the value of a given OID. Using the default SNMP connection parameters of Gosnmp

func (*GetersonSnmp) Run

func (g *GetersonSnmp) Run()

Run prepares the sample data and sets the Goroutine parameters. TODO: Receive sample configuration parameters.

Jump to

Keyboard shortcuts

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