SNMP walk
Read every object under an OID, e.g. a whole interface table, with repeated GETNEXT requests or, for v2c and v3, fewer GETBULK requests.
Command in the Network toolkit · id ooa.network/snmp_walk · 19 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Host | String | Yes | Device host name or IP address. | |
| Oid | String | Yes | Root OID of the subtree to read. | |
| Community | Any | No | public | SNMP v1 or v2c community (text or a Credential); public when empty. |
| Port | Number | No | 161 | UDP port of the SNMP agent. |
| Maximum rows | Number | No | 10000 | Safety limit on objects read. |
| Wait up to (milliseconds) | Number | No | 3000 | How long to wait for each answer, in milliseconds. |
| Retries | Number | No | 1 | Extra attempts after a timeout. |
| Version | String | No | v2c | SNMP version the device speaks. |
| Security user | String | No | SNMP v3 security user name (v3 uses it instead of a community). | |
| Sign-in protocol | String | No | sha | SNMP v3 sign-in protocol: none, md5, sha (SHA-1), sha256 or sha512. |
| Sign-in password | Credential | No | SNMP v3 sign-in password from the vault. | |
| Privacy protocol | String | No | aes128 | SNMP v3 privacy (encryption): none, des or aes128. |
| Privacy password | Credential | No | SNMP v3 privacy (encryption) password from the vault. | |
| Context name | String | No | SNMP v3 context, when the device uses them; usually empty. | |
| Walk type | String | No | getnext | getnext asks for one object per request and works with every version; getbulk (v2c and v3 only) asks for up to max_repetitions objects per request, which is much faster on large tables. |
| Maximum repetitions | Number | No | 10 | With getbulk, how many objects to ask for in each request; lower it when the device answers tooBig or not at all. |
| Scope | String | No | within | within: only objects under the starting OID; all: go on to the end of the device's tree (up to max_rows) (G4). |
| Output as | String | No | auto | Text values as the device sent them (auto: text when readable, else hex), always as text, or always as hex bytes (G4). |
| Log file | File | No | Also write what was asked and answered to this text file (G4). |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: oid, type, value. |
| row_count | Number | Number of objects read. |