snmp

package
v0.26.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntPhysicalTable

type EntPhysicalTable struct {
	EntPhysicalMfgName     string `json:"entPhysicalMfgName,omitempty"`
	EntPhysicalName        string `json:"entPhysicalName,omitempty"`
	EntPhysicalSoftwareRev string `json:"entPhysicalSoftwareRev,omitempty"`
}

EntPhysicalTable ...

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option ...

func WithCommunity

func WithCommunity(c string) Option

WithCommunity ...

func WithDebug

func WithDebug(d bool) Option

WithDebug ...

type Result

type Result struct {
	SysDescr0         string                   `json:"sysDescr0,omitempty"`
	EntPhysicalTables map[int]EntPhysicalTable `json:"entPhysicalTables,omitempty"`
}

Result ...

func Get

func Get(version gosnmp.SnmpVersion, ipaddr string, opts ...Option) (Result, error)

Get ...

Jump to

Keyboard shortcuts

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