trap_send(1M) trap_send(1M)
NAME
trap_send - send SNMP traps
SYNOPSIS
trap_send entity_addr community_string trap_type
DESCRIPTION
The trap_send command sends Simple Network Management (SNMP)
trap messages to trap monitoring stations.
The arguments are the entity's address, a community string,
and an integer trap type.
The entity address can be either an IP address or entity name
(if name-to-address resolution is enabled).
The community string is used by the network management
software receiving a trap to filter out specfic traps. In
this case, the community string is not used for authentication
purposes. For example, a particular network management
station might be interested only in traps sent with the test1
or test2 community strings, and might ignore all of the traps
sent with any other community string.
The trap_type can be any integer; since this is essentially a
test program, the trap type is immaterial and is open to
interpretation by the network management software receiving
the trap.
The primary purpose of this program is to demonstrate how
traps are sent using the SNMP library. It can be used to test
network management software for correct configuration.
REFERENCES
snmp(1M), snmpd(1M), trap_rece(1M), snmpd.trap(4), RFC 1155,
RFC 1157, RFC 1213.
Copyright 1994 Novell, Inc. Page 1