← 返回命令列表

Linux command

snmpbulkget 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Bulk get MIB values

snmpbulkget -v [2c] -c [public] [host] [OID]

Get with non-repeaters

snmpbulkget -Cn [1] -v [2c] -c [public] [host] [OID]

Get with max repetitions

snmpbulkget -Cr [10] -v [2c] -c [public] [host] [OID]

说明

snmpbulkget retrieves multiple MIB values from an SNMP agent in a single request using the GETBULK operation introduced in SNMPv2c. This is significantly more efficient than issuing multiple individual GET or GETNEXT requests, especially when retrieving large tables or sequential OID ranges. The -Cn (non-repeaters) parameter specifies how many of the initial OIDs should be retrieved with a simple GETNEXT, while -Cr (max-repetitions) controls how many successive values to fetch for the remaining OIDs. This combination allows mixing scalar and tabular data retrieval in a single request. The tool is part of the Net-SNMP suite and requires SNMPv2c or SNMPv3, as the GETBULK operation is not available in SNMPv1.

参数

-v _version_
SNMP version (2c, 3).
-c _community_
Community string.
-Cn _num_
Non-repeaters count.
-Cr _num_
Max repetitions.
-O _opts_
Output options.

FAQ

What is the snmpbulkget command used for?

snmpbulkget retrieves multiple MIB values from an SNMP agent in a single request using the GETBULK operation introduced in SNMPv2c. This is significantly more efficient than issuing multiple individual GET or GETNEXT requests, especially when retrieving large tables or sequential OID ranges. The -Cn (non-repeaters) parameter specifies how many of the initial OIDs should be retrieved with a simple GETNEXT, while -Cr (max-repetitions) controls how many successive values to fetch for the remaining OIDs. This combination allows mixing scalar and tabular data retrieval in a single request. The tool is part of the Net-SNMP suite and requires SNMPv2c or SNMPv3, as the GETBULK operation is not available in SNMPv1.

How do I run a basic snmpbulkget example?

Run `snmpbulkget -v [2c] -c [public] [host] [OID]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v _version_ do in snmpbulkget?

SNMP version (2c, 3).