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 "08 Feb 2002" VVERSIONINFO "Net-SNMP"
25 snmptrap, snmpinform - sends an SNMP trap to a manager
28 [COMMON OPTIONS] [-Ci] enterprise-oid agent generic-trap specific-trap uptime [OID TYPE VALUE]...
31 [COMMON OPTIONS] [-Ci] uptime trap-oid [OID TYPE VALUE]...
33 .B snmpinform -v [2c|3]
34 [COMMON OPTIONS] uptime trap-oid [OID TYPE VALUE]...
37 is an SNMP application that uses the SNMP TRAP operation to send
38 information to a network manager. One or more object identifiers
39 (OIDs) can be given as arguments on the command line. A type and a
40 value must accompany each object identifier. Each variable name is
41 given in the format specified in
48 is added to the command line flags of snmptrap, it sends an
49 INFORM-PDU, expecting a response from the trap receiver,
50 retransmitting if required. Otherwise it sends an TRAP-PDU or
53 If any of the required version 1 parameters,
58 are specified as empty, it defaults to
59 .IR "1.3.6.1.4.1.3.1.1 (enterprises.cmu.1.1)" ,
67 is a single character, one of:
108 snmptrap -v 1 -c public manager enterprises.spider test-hub 3 0 '' interfaces.iftable.ifentry.ifindex.1 i 1
110 will send a generic linkUp trap to manager, for interface 1.
113 takes the common options described in the
118 option described above.
120 snmpcmd(1), variables(5).