snmpgetnext

Retrieve next SNMP OID value sequentially

TLDR

Get next OID value
$ snmpgetnext -v [2c] -c [public] [host] [OID]
Get next with SNMPv3
$ snmpgetnext -v [3] -u [user] -l authPriv -a SHA -A [authpass] -x AES -X [privpass] [host] [OID]

SYNOPSIS

snmpgetnext [options] agent oid...

DESCRIPTION

snmpgetnext retrieves the lexicographically next OID value from an SNMP agent. Used for walking MIB trees and discovering available OIDs. Part of Net-SNMP suite.

PARAMETERS

-v version

SNMP version (1, 2c, 3).
-c community
Community string.
-u user
SNMPv3 username.
-l level
Security level (noAuthNoPriv, authNoPriv, authPriv).
-O opts
Output format options.

INSTALL

sudo apt install snmp
sudo apk add net-snmp-tools

SEE ALSO

snmpget(1), snmpwalk(1), snmpbulkget(1)