trap_send(1Msnmp)


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(1Msnmp), snmpd(1Msnmp), snmpd.trap(4snmp), trap_rece(1Msnmp)

RFC 1155, RFC 1157, RFC 1213


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