1 .\" /***********************************************************
2 .\" Copyright 1988, 1989 by Carnegie Mellon University
4 .\" All Rights Reserved
6 .\" Permission to use, copy, modify, and distribute this software and its
7 .\" documentation for any purpose and without fee is hereby granted,
8 .\" provided that the above copyright notice appear in all copies and that
9 .\" both that copyright notice and this permission notice appear in
10 .\" supporting documentation, and that the name of CMU not be
11 .\" used in advertising or publicity pertaining to distribution of the
12 .\" software without specific, written prior permission.
14 .\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 .\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 .\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 .\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 .\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 .\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21 .\" ******************************************************************/
22 .TH SNMPTRAP 1 "11 May 2000"
25 snmptrap, snmpinform - sends an SNMP trap to a manager
27 snmptrap -v 1 [-Ci] [common arguments] enterprise-oid agent generic-trap specific-trap uptime [objectID type value]...
29 snmptrap -v [2c|3] [-Ci] [common arguments] uptime trap-oid [objectID type value]...
31 snmpinform -v [2c|3] [common arguments] uptime trap-oid [objectID type value]...
33 Snmptrap is an SNMP application that uses the TRAP Request to send
34 information to a network manager. One or more fully qualified
35 object identifiers can be given as arguments on the command line. A type
36 and a value must accompany each object
37 identifier. Each variable name is given in the format specified in
42 or when -Ci is added to the command line flags of snmptrap, it sends
43 an INFORM-PDU, expecting a response from the trap receiver,
44 retransmitting if required. Otherwise it sends an TRAP-PDU or
47 If any of the required version 1 parameters,
52 are specified as empty, it defaults to
53 .IR "1.3.6.1.4.1.3.1.1 (enterprises.cmu.1.1)" ,
61 is a single character, one of:
102 .I "snmptrap -v 1 manager public enterprises.spider test-hub 3 0 '' interfaces.iftable.ifentry.ifindex.1 i 1"
104 will send a generic link-up trap to manager, for interface 1.
106 If the network entity has an error processing the request packet, an error
107 packet will be returned and a message will be shown, helping to pinpoint in what
108 way the request was malformed. If there were other variables in the request,
109 the request will be resent without the bad variable.
112 snmpcmd(1), variables(5).