This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

SNMPWalk()

Deprecated in 3.0.

Please use walk method of SNMPTransport class.

SNMPWalk(transport, oid): Array

Perform SNMP WALK request for oid over provided transport and return collected values as array of SNMPVarBind or null on failure.

Table 1. Parameters

transport

Transport created by CreateSNMPTransport().

oid

SNMP OID string.

Return

Array of SNMPVarBind or null or failure.

>>> transport = CreateSNMPTransport(FindObject("Server1"));
>>> if (transport != null) {
>>>     oid = ".1.3.6.1.2.1.25.4.2.1.2"; // Names of the running processes
>>>     vars = SNMPWalk(transport, oid);
>>>     if (vars != null) {
>>>         for (v: vars) {
>>>             trace(1, v.name .. "=" .. v.value);
>>>         }
>>>     }
>>> }