Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmpdf(1) [osx man page]

SNMPDF(1)							     Net-SNMP								 SNMPDF(1)

NAME
snmpdf - display disk space usage on a network entity via SNMP SYNOPSIS
snmpdf [COMMON OPTIONS] [-Cu] AGENT DESCRIPTION
snmpdf is simply a networked verison of the typical df command. It checks the disk space on the remote machine by examining the HOST- RESOURCES-MIB's hrStorageTable or the UCD-SNMP-MIB's dskTable. By default, the hrStorageTable is preferred as it typically contains more information. However, the -Cu argument can be passed to snmpdf to force the usage of the dskTable. AGENT identifies a target SNMP agent, which is instrumented to monitor the gievn objects. At its simplest, the AGENT specification will consist of a hostname or an IPv4 address. In this situation, the command will attempt communication with the agent, using UDP/IPv4 to port 161 of the given target host. See the snmpcmd(1) manual page for a full list of the possible formats for AGENT. See the snmpd.conf(5) manual page on setting up the dskTable using the disk directive in the snmpd.conf file. OPTIONS
COMMON OPTIONS Please see snmpcmd(1) for a list of possible values for COMMON OPTIONS as well as their descriptions. -Cu Forces the command to use dskTable in mib UCD-SNMP-MIB instead of the default to determine the storage information. Generally, the default use of hrStorageTable in mib HOST-RESOURCES-MIB is preferred because it typically contains more information. EXAMPLES
% snmpdf -v 2c -c public localhost Description size (kB) Used Available Used% / 7524587 2186910 5337677 29% /proc 0 0 0 0% /etc/mnttab 0 0 0 0% /var/run 1223088 32 1223056 0% /tmp 1289904 66848 1223056 5% /cache 124330 2416 121914 1% /vol 0 0 0 0% Real Memory 524288 447456 76832 85% Swap Space 1420296 195192 1225104 13% SEE ALSO
snmpd.conf(5), snmp.conf(5) V5.6 25 Jul 2003 SNMPDF(1)

Check Out this Related Man Page

SNMPSTATUS(1)							     Net-SNMP							     SNMPSTATUS(1)

NAME
snmpstatus - retrieves a fixed set of management information from a network entity SYNOPSIS
snmpstatus [COMMON OPTIONS] [-Cf] AGENT DESCRIPTION
snmpstatus is an SNMP application that retrieves several important statistics from a network entity. AGENT identifies a target SNMP agent, which is instrumented to monitor the given objects. At its simplest, the AGENT specification will consist of a hostname or an IPv4 address. n this situation, the command will attempt communication with the agent, using UDP/IPv4 to port 161 of the given target host. See the snmpcmd(1) manual page for a full list of the possible formats for AGENT. The information returned is: The IP address of the entity. A textual description of the entity (sysDescr.0) The uptime of the entity's SNMP agent (sysUpTime.0) The sum of received packets on all interfaces (ifInUCastPkts.* + ifInNUCastPkts.*) The sum of transmitted packets on all interfaces (ifOutUCastPkts.* + ifOutNUCastPkts.*) The number of IP input packets (ipInReceives.0) The number of IP output packets (ipOutRequests.0) For example: snmpstatus -c public -v 1 netdev-kbox.cc.cmu.edu will produce output similar to the following: [128.2.56.220]=>[Kinetics FastPath2] Up: 1 day, 4:43:31 Interfaces: 1, Recv/Trans packets: 262874/39867 | IP: 31603/15805 snmpstatus also checks the operational status of all interfaces (ifOperStatus.*), and if it finds any that are not running, it will report in a manner similar to this: 2 interfaces are down! If the network entity has an error processing the request packet, an error packet will be returned and a message will be shown, helping to pinpoint in what way the request was malformed. snmpstatus will attempt to reform its request to eliminate the malformed variable (unless the -Cf option is given, see below), but this variable will then be missing from the displayed data. OPTIONS
COMMON OPTIONS Please see snmpcmd(1) for a list of possible values for COMMON OPTIONS as well as their descriptions. -Cf By default, snmpstatus will try to fix errors returned by the agent and retry a request. In this situation, the command will display the data that it can. If the -Cf option is specified, then snmpstatus will not try to fix errors, and the error will cause the com- mand to terminate. SEE ALSO
snmpcmd(1), snmpget(1) V5.6.2.1 25 Jul 2003 SNMPSTATUS(1)
Man Page