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 ¶
Click to show internal directories.
Click to hide internal directories.