snmp

package
v0.0.0-...-6a11bfb Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package snmp handles all SNMP interactions including IP address discovery

Package snmp handles all SNMP (Simple Network Management Protocol) interactions with target devices, supporting SNMP versions v1, v2c, and v3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectIPAddresses

func CollectIPAddresses(params *g.GoSNMP, ipAddress string, log *slog.Logger) ([]datamodel.DiscoveredIPAddress, error)

CollectIPAddresses performs IP address discovery using RFC1213-MIB ipAddrTable

func PerformQuery

func PerformQuery(ipAddress string, snmpConfig datamodel.SNMPConfig, oidsToQuery []string, maxOidsPerRequest int, fetchIPAddresses bool) (*datamodel.SNMPScanResult, error)

PerformQuery connects to an SNMP agent and retrieves specified OIDs.

Types

type InterfaceInfo

type InterfaceInfo struct {
	Index       int
	Description string
	Name        string
	Alias       string
}

InterfaceInfo holds contextual data about a network interface

Jump to

Keyboard shortcuts

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