1SNMPDF(1)                          Net-SNMP                          SNMPDF(1)
2
3
4

NAME

6       snmpdf - display disk space usage on a network entity via SNMP
7

SYNOPSIS

9       snmpdf [COMMON OPTIONS] [-Cu] [-Ch] AGENT
10

DESCRIPTION

12       snmpdf  is  simply  a  networked version of the typical df command.  It
13       checks the disk space on the remote machine by examining  the  HOST-RE‐
14       SOURCES-MIB's  hrStorageTable  or  the UCD-SNMP-MIB's dskTable.  By de‐
15       fault, the hrStorageTable is preferred as it  typically  contains  more
16       information.   However,  the  -Cu  argument  can be passed to snmpdf to
17       force the usage of the dskTable.
18
19       AGENT identifies a target SNMP agent, which is instrumented to  monitor
20       the  given objects.  At its simplest, the AGENT specification will con‐
21       sist of a hostname or an IPv4 address.  In this situation, the  command
22       will  attempt  communication with the agent, using UDP/IPv4 to port 161
23       of the given target host. See the snmpcmd(1) manual  page  for  a  full
24       list of the possible formats for AGENT.
25
26       See  the snmpd.conf(5) manual page on setting up the dskTable using the
27       disk directive in the snmpd.conf file.
28

OPTIONS

30       COMMON OPTIONS
31               Please see snmpcmd(1) for a list of possible values for  COMMON
32               OPTIONS as well as their descriptions.
33
34       -Cu     Forces  the command to use dskTable in mib UCD-SNMP-MIB instead
35               of the default to determine the storage information. Generally,
36               the  default use of hrStorageTable in mib HOST-RESOURCES-MIB is
37               preferred because it typically contains more information.
38
39       -Ch     Print sizes in human readable format (i.e. MiB, GiB, TiB)
40
41       -CH     Print sizes in human readable SI format (i.e. MB, GB, TB)
42

EXAMPLES

44       % snmpdf -v 2c -c public localhost
45
46       Description       size (kB)         Used    Available Used%
47       /                   7524587      2186910      5337677   29%
48       /proc                     0            0            0    0%
49       /etc/mnttab               0            0            0    0%
50       /var/run            1223088           32      1223056    0%
51       /tmp                1289904        66848      1223056    5%
52       /cache               124330         2416       121914    1%
53       /vol                      0            0            0    0%
54       Real Memory          524288       447456        76832   85%
55       Swap Space          1420296       195192      1225104   13%
56

SEE ALSO

58       snmpd.conf(5), snmp.conf(5)
59
60
61
62V5.9.4.pre2                       28 Jan 2013                        SNMPDF(1)
Impressum