Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSNMPProvider ¶
func NewSNMPProvider(_ context.Context, address string, port uint16, community string, pollInt time.Duration, version gosnmp.SnmpVersion, v3Params *V3Params, mibs []string, mock bool, monitor provider.Monitor) provider.GNMIProvider
NewSNMPProvider returns a new SNMP provider for the device at 'address' using a community value for authentication and pollInterval for rate limiting requests.
func PDUsFromString ¶
PDUsFromString converts a set of formatted SNMP responses (as returned by snmpwalk -v3 -O ne <target> <oid>) to PDUs.
Types ¶
type Snmp ¶
type Snmp struct {
// contains filtered or unexported fields
}
Snmp contains everything needed to implement an SNMP provider.
func (*Snmp) InitGNMI ¶
func (s *Snmp) InitGNMI(client gnmi.GNMIClient)
InitGNMI initializes the Snmp provider with a gNMI client.
func (*Snmp) OpenConfig ¶
OpenConfig indicates that this provider wants OpenConfig type-checking.
type V3Params ¶
type V3Params struct { SecurityModel gosnmp.SnmpV3SecurityModel Level gosnmp.SnmpV3MsgFlags UsmParams *gosnmp.UsmSecurityParameters }
V3Params contains options related to SNMPv3.
Click to show internal directories.
Click to hide internal directories.