DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

trap_send(ADMN)


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(ADMN), snmpd(ADMN), snmpd.trap(SFF), trap_rece(ADMN)

RFC 1155, RFC 1157, RFC 1213


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005