snmp_traprcv(8)snmp_traprcv(8)NAMEsnmp_traprcv - A program that listens for SNMP trap messages and prints
any it receives
SYNOPSIS
/usr/sbin/snmp_traprcv [-d] [-tcp] [-p port]
OPTIONS
Sends a hexadecimal dump of the received packet to stdout. Specifies
that the TCP transport be used instead of the UDP transport. If a con‐
nection cannot be established, the program silently receives the trap
on the standard transport address (UDP 162). Specifies the port number
on the local host on which to listen to messages. The default is 162,
the well-known SNMP trap port.
DESCRIPTION
The snmp_traprcv program listens on the SNMP Trap port specified in the
/etc/services file. If no entry exists in the /etc/services file, the
program listens on port 162. If any SNMP trap messages arrive,
snmp_traprcv prints them to stdout. The program runs until terminated
by typing Ctrl/c.
RESTRICTIONS
When using the default or well-known port, you must have root privi‐
leges in order to run this program. The program may not be able to
bind to the default or specified port if other software on the system
is already bound to that port.
SEE ALSO
Commands: snmpd(8), snmp_request(8), snmp_trapsnd(8)snmp_traprcv(8)