Search documentation of snmpkit

# SnmpKit.SnmpMgr.V2Walk (snmpkit v1.3.17)

Handles the logic for performing an SNMP walk for a single target.

This module is designed to be called from a concurrent execution environment like `Task.async_stream`. It manages the state of an individual walk, iteratively sending GetBulk requests until the walk is complete or an error occurs.

# Summary

## Functions

walk(request, timeout)

Performs a full SNMP walk for a given target and root OID.

# Functions

# walk(request, timeout)

Performs a full SNMP walk for a given target and root OID.

This function performs a synchronous, iterative walk within the calling process. It repeatedly sends GetBulk requests until the end of the MIB subtree is reached, blocking until the walk is complete or an error occurs.

## Parameters

- `request` - A map containing request details (target, oid, opts, etc.).
- `timeout` - The timeout in milliseconds for each individual SNMP request.

## Returns

- `{:ok, results}` - A list of `{oid, type, value}` tuples.
- `{:error, reason}` - An error tuple if the walk fails.