LinuxCommandLibrary

snmpdf

Display remote disk usage via SNMP

TLDR

Show disk usage via SNMP

$ snmpdf -v [2c] -c [public] [host]
copy
Human readable output
$ snmpdf -v [2c] -c [public] -Ch [host]
copy
Show all storage types
$ snmpdf -v [2c] -c [public] -Cu [host]
copy

SYNOPSIS

snmpdf [options] agent

DESCRIPTION

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 includes all storage types rather than just physical filesystems.
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.

PARAMETERS

-v version

SNMP version (1, 2c, 3).
-c community
Community string.
-Ch
Human readable sizes.
-Cu
Show all storage units.

SEE ALSO

snmpget(1), df(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community