trap_rece(1Msnmp)


trap_rece -- receive traps from 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.

Examples

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

snmp(1Msnmp), snmpd(1Msnmp), snmpd.trap(4snmp), trap_send(1Msnmp)

RFC 1155, RFC 1157, RFC 1213


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004