SNMPSTATUS(1)

NAME
snmpstatus - Fetch status of an SNMP agent

SYNOPSIS
snmpstatus [ -d ] [ -V ] [ -p Port ] [ -r Retries ] [ -t Timeout ] [ -1 ] [ -2 ] host [ community ]

DESCRIPTION
snmpstatus is a small program that will fetch some basic information from a network SNMP entity.

The host specification may be either a host name or an internet address specified in "dot notation"

community specifies the community name for the transaction with the remote system. If this argument is not given, the community name will default to public .

Adding a "-d" to the argument list will cause the application to dump input and output packets.

The "-V" flag returns the version of the app, and the version of the SNMP library used.

The "-p" flag allows an alternate port to be used for SNMP transactions.

The "-r" flag sets the number of retries. The default is 4.

The "-t" flag sets the timeout in microseconds. The default is 1000000.

The "-1" and "-2" flags set the SNMP version of the outgoing request.

  SNMP Information Fetched
The information fetched is:
System Description        .1.3.6.1.2.1.1.1.0
System Uptime             .1.3.6.1.2.1.1.3.0
Interface information     .1.3.6.1.2.1.2.2.1.[8,11,12,17,18]
IP Packets received       .1.3.6.1.2.1.4.3.0
IP Packets sent           .1.3.6.1.2.1.4.10.0

EXAMPLES
% snmpstatus snmp-example.net.cmu.edu

returns

[128.2.6.6]=>[Unix 4.3BSD] Up: 40 days, 1:02:35
Recv/Trans packets: Interfaces: 13773753/6762074 | IP: 7282596/0

ENVIRONMENT
MIBFILE: Location of the SNMP MIB.

FILES
mib.txt                   First MIB tried if env. var is not set
/etc/mib.txt              Second MIB tried if env. var is not set

RFCS
Related RFCs: 1065, 1066, 1067
Related SNMPv2 RFCs: 1901, 1902, 1902, 1904, 1905, 1906, 1907, 1908, 1909

RELATED URLS
CMU Networking Group: http://www.net.cmu.edu/
CMU SNMP Home Page: http://www.net.cmu.edu/projects/snmp

SEE ALSO
snmpdelta(1), snmpget(1), snmpgetnext(1), snmpset(1), snmpstatus(1), snmptest(1), snmptranslate(1), snmptrap(1), snmptrap2(1), snmptrapd(1), snmpwalk(1)