← 返回命令列表

Linux command

snmptable 命令

文本

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

常用示例

Display SNMP table

snmptable -v [2c] -c [public] [host] [TABLE_OID]

Show with column headers

snmptable -v [2c] -c [public] -Cb [host] [TABLE_OID]

Show interface table

snmptable -v [2c] -c [public] [host] ifTable

说明

snmptable displays SNMP table data in tabular format. Retrieves and formats MIB tables for easy reading. Part of Net-SNMP suite for network management.

参数

-v _version_
SNMP version (1, 2c, 3).
-c _community_
Community string.
-Cb
Brief column names.
-Cf _sep_
Field separator.
-Cw _width_
Column width.

FAQ

What is the snmptable command used for?

snmptable displays SNMP table data in tabular format. Retrieves and formats MIB tables for easy reading. Part of Net-SNMP suite for network management.

How do I run a basic snmptable example?

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

What does -v _version_ do in snmptable?

SNMP version (1, 2c, 3).