← 返回命令列表

Linux command

snmpdf 命令

文本

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

常用示例

Show disk usage via SNMP

snmpdf -v [2c] -c [public] [host]

Human readable output

snmpdf -v [2c] -c [public] -Ch [host]

Human readable SI format output

snmpdf -v [2c] -c [public] -CH [host]

Use UCD-SNMP-MIB dskTable instead of default

snmpdf -v [2c] -c [public] -Cu [host]

说明

snmpdf displays disk space and storage usage from remote hosts by querying SNMP agents, providing functionality similar to the df command but over the network. It reads the Host Resources MIB (hrStorageTable) to report filesystem sizes, used space, and availability. The tool queries storage entries including physical disks, RAM, virtual memory, and other storage types reported by the SNMP agent. The -Ch flag formats output in human-readable sizes, and -Cu forces use of the UCD-SNMP-MIB dskTable instead of the default hrStorageTable. snmpdf is part of the Net-SNMP suite and is useful for monitoring disk usage across many hosts from a central location without requiring SSH access or agents beyond the standard SNMP daemon.

参数

-v _version_
SNMP version (1, 2c, 3).
-c _community_
Community string.
-Ch
Human readable sizes (MiB, GiB, TiB).
-CH
Human readable sizes in SI format (MB, GB, TB).
-Cu
Use UCD-SNMP-MIB dskTable instead of default HOST-RESOURCES-MIB hrStorageTable.

FAQ

What is the snmpdf command used for?

snmpdf displays disk space and storage usage from remote hosts by querying SNMP agents, providing functionality similar to the df command but over the network. It reads the Host Resources MIB (hrStorageTable) to report filesystem sizes, used space, and availability. The tool queries storage entries including physical disks, RAM, virtual memory, and other storage types reported by the SNMP agent. The -Ch flag formats output in human-readable sizes, and -Cu forces use of the UCD-SNMP-MIB dskTable instead of the default hrStorageTable. snmpdf is part of the Net-SNMP suite and is useful for monitoring disk usage across many hosts from a central location without requiring SSH access or agents beyond the standard SNMP daemon.

How do I run a basic snmpdf example?

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

What does -v _version_ do in snmpdf?

SNMP version (1, 2c, 3).