Skip to main content

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​

InputTypeRequiredDefaultWhat it is
HostStringYesDevice host name or IP address.
OidStringYesRoot OID of the subtree to read.
CommunityAnyNopublicSNMP v1 or v2c community (text or a Credential); public when empty.
PortNumberNo161UDP port of the SNMP agent.
Maximum rowsNumberNo10000Safety limit on objects read.
Wait up to (milliseconds)NumberNo3000How long to wait for each answer, in milliseconds.
RetriesNumberNo1Extra attempts after a timeout.
VersionStringNov2cSNMP version the device speaks.
Security userStringNoSNMP v3 security user name (v3 uses it instead of a community).
Sign-in protocolStringNoshaSNMP v3 sign-in protocol: none, md5, sha (SHA-1), sha256 or sha512.
Sign-in passwordCredentialNoSNMP v3 sign-in password from the vault.
Privacy protocolStringNoaes128SNMP v3 privacy (encryption): none, des or aes128.
Privacy passwordCredentialNoSNMP v3 privacy (encryption) password from the vault.
Context nameStringNoSNMP v3 context, when the device uses them; usually empty.
Walk typeStringNogetnextgetnext 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 repetitionsNumberNo10With getbulk, how many objects to ask for in each request; lower it when the device answers tooBig or not at all.
ScopeStringNowithinwithin: only objects under the starting OID; all: go on to the end of the device's tree (up to max_rows) (G4).
Output asStringNoautoText values as the device sent them (auto: text when readable, else hex), always as text, or always as hex bytes (G4).
Log fileFileNoAlso write what was asked and answered to this text file (G4).

Outputs​

OutputTypeWhat it is
tableTableColumns: oid, type, value.
row_countNumberNumber of objects read.