snmp

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 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 ...

func WithPort added in v0.28.0

func WithPort(p uint16) Option

WithPort ...

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