1SNMPTRAP(1)                        Net-SNMP                        SNMPTRAP(1)
2
3
4

NAME

6       snmptrap, snmpinform - sends an SNMP notification to a manager
7

SYNOPSIS

9       snmptrap  -v 1 [COMMON OPTIONS] AGENT enterprise-oid agent generic-trap
10       specific-trap uptime [OID TYPE VALUE]...
11
12       snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] AGENT  uptime  trap-oid  [OID
13       TYPE VALUE]...
14
15       snmpinform  -v  [2c|3] [COMMON OPTIONS] AGENT uptime trap-oid [OID TYPE
16       VALUE]...
17

DESCRIPTION

19       snmptrap is an SNMP application that uses the SNMP  TRAP  operation  to
20       send  information to a network manager.  One or more object identifiers
21       (OIDs) can be given as arguments on the command line.   A  type  and  a
22       value  must  accompany  each  object identifier.  Each variable name is
23       given in the format specified in variables(5).
24
25       When invoked as snmpinform, or when -Ci is added to  the  command  line
26       flags  of  snmptrap,  it sends an INFORM-PDU, expecting a response from
27       the trap receiver, retransmitting if required.  Otherwise it  sends  an
28       TRAP-PDU or TRAP2-PDU.
29
30       If any of the required version 1 parameters, enterprise-oid, agent, and
31       uptime are specified as empty, it defaults to 1.3.6.1.4.1.3.1.1 (enter‐
32       prises.cmu.1.1), hostname, and host-uptime respectively.
33
34       The TYPE is a single character, one of:
35              i  INTEGER
36              u  UNSIGNED
37              c  COUNTER32
38              s  STRING
39              x  HEX STRING
40              d  DECIMAL STRING
41              n  NULLOBJ
42              o  OBJID
43              t  TIMETICKS
44              a  IPADDRESS
45              b  BITS
46       which are handled in the same way as the snmpset command.
47
48       For example:
49
50       snmptrap  -v  1  -c  public  manager enterprises.spider test-hub 3 0 ''
51       interfaces.iftable.ifentry.ifindex.1 i 1
52
53       will send a generic linkUp trap to manager, for interface 1.
54

OPTIONS

56       snmptrap takes the common options described in  the  snmpcmd(1)  manual
57       page in addition to the -Ci option described above.  Note that snmptrap
58       REQUIRES  an argument specifying the agent to query as described there.
59

SEE ALSO

61       snmpcmd(1), snmpset(1), variables(5).
62
63
64
65V5.7.2                            19 Jun 2003                      SNMPTRAP(1)
Impressum