snmptraprecv(1M) TCP/IP R4.11 snmptraprecv(1M)
NAME
snmptraprecv - receive SNMP trap messages
SYNOPSIS
snmptraprecv [-n][-t][-d]
DESCRIPTION
Use the snmptraprecv command to receive trap messages from SNMP
agents. The command listens on UDP port number port for incoming
traps and prints information about them as they are received. If you
do not specify a port, snmptraprecv will determine the port number
using getservbyname(3N) for "snmp-trap".
Options are:
-n Display Object IDs in a numeric format instead of translating
them into a symbolic name.
-t Display the data type of the object in addition to its name
and value.
-d Use the -d option to print additional information about the
packets as they are received.
EXAMPLE
In the following example, snmptraprecv is used to demonstrate the
trap generated by snmptrapsend.
$ snmptraprecv &
$ snmptrapsend localhost public coldStart
Community: public
Enterprise: dataGeneral
Agent-addr: 127.0.0.1
Cold start trap.
Time Ticks: 0
Name: iso.1.1.1
Value: NULL
DIAGNOSTICS
Exit status of -1 is returned if there are command line errors. The
command runs until the user terminates it, so there is no normal exit
status.
SEE ALSO
snmpgetmany(1M), snmpgetnext(1M), snmpsetany(1M), snmptrapsend(1M),
snmpgettab(1M), snmpgetone(1M), snmpd(1M), snmpd.conf(4M),
snmpdfiles(4M), getservbyname(3N).
Licensed material--property of copyright holder(s)