trap_rece(1M) trap_rece(1M)
NAME
trap_rece - receive traps from a remote SNMP trap generating
entity
SYNOPSIS
trap_rece
DESCRIPTION
The trap_rece command receives traps from remote Simple
Network Management (SNMP) trap generating entities.
trap_rece binds to the SNMP trap port (udp/162) to listen for
the traps, and thus must be run as a privileged user.
trap_rece prints, to standard output, messages corresponding
to the traps it has received.
The primary purpose of this program is to demonstrate how
traps are parsed using the SNMP library.
EXAMPLE
When trap_rece gets a trap message, it prints the following
information to standard output:
Community: public.
Enterprise: experimental.x.xx.xx.xx.xx.
Agent-addr: xxx.xxx.xxx.xxx.
Authentication failure trap.
Time Ticks: 0.
Name: iso.x.x.x
Value: NULL
REFERENCES
snmpd(1M), snmp(1M), trap_send(1M), snmpd.trap(4), RFC 1155,
RFC 1157, RFC 1213.
Copyright 1994 Novell, Inc. Page 1