snmp_walk_last
Fetch the most recent stored SNMP walk for a device (cached in tools_walks). Wraps GET /api/getLastWalk/{device} (permission: tools). Cheap single-row read.
Always try this first when an SNMP walk is needed. Only fall back to snmp_walk_run if the cached row is missing or the data is too stale for the question (the controller does not stamp a freshness header — judge from the walk's own timestamps if present).
Returns the raw walk row including device_id and the captured OID payload. Empty walk = device has never been walked.
Example: snmp_walk_last({device_id: 42})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device id to look up the most recent stored walk for. |