version 1, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
SNMPTRAP |
| |
|
2 |
!!!SNMPTRAP |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
SEE ALSO |
| |
|
7 |
---- |
| |
|
8 |
!!NAME |
| |
|
9 |
|
| |
|
10 |
|
| |
|
11 |
snmptrap, snmpinform - sends an SNMP trap to a manager |
| |
|
12 |
!!SYNOPSIS |
| |
|
13 |
|
| |
|
14 |
|
| |
|
15 |
snmptrap -v 1 [[-Ci] [[common arguments] enterprise-oid agent |
| |
|
16 |
generic-trap specific-trap uptime [[objectID type |
| |
|
17 |
value]... |
| |
|
18 |
|
| |
|
19 |
|
| |
|
20 |
snmptrap -v [[2c|3] [[-Ci] [[common arguments] uptime trap-oid |
| |
|
21 |
[[objectID type value]... |
| |
|
22 |
|
| |
|
23 |
|
| |
|
24 |
snmpinform -v [[2c|3] [[common arguments] uptime trap-oid |
| |
|
25 |
[[objectID type value]... |
| |
|
26 |
!!DESCRIPTION |
| |
|
27 |
|
| |
|
28 |
|
| |
|
29 |
Snmptrap is an SNMP application that uses the TRAP Request |
| |
|
30 |
to send information to a network manager. One or more fully |
| |
|
31 |
qualified object identifiers can be given as arguments on |
| |
|
32 |
the command line. A type and a value must accompany each |
| |
|
33 |
object identifier. Each variable name is given in the format |
| |
|
34 |
specified in variables(5). |
| |
|
35 |
|
| |
|
36 |
|
| |
|
37 |
When invoked as ''snmpinform,'' or when -Ci is added to |
| |
|
38 |
the command line flags of snmptrap, it sends an INFORM-PDU, |
| |
|
39 |
expecting a response from the trap receiver, retransmitting |
| |
|
40 |
if required. Otherwise it sends an TRAP-PDU or |
| |
|
41 |
TRAP2-PDU. |
| |
|
42 |
|
| |
|
43 |
|
| |
|
44 |
If any of the required version 1 parameters, |
| |
|
45 |
''enterprise-oid'', ''agent'', and ''uptime'' are |
| |
|
46 |
specified as empty, it defaults to ''1.3.6.1.4.1.3.1.1 |
| |
|
47 |
(enterprises.cmu.1.1)'', ''hostname'', and |
| |
|
48 |
''host-uptime'' respectively. |
| |
|
49 |
|
| |
|
50 |
|
| |
|
51 |
The ''type'' is a single character, one of: |
| |
|
52 |
|
| |
|
53 |
|
| |
|
54 |
__i__ |
| |
|
55 |
|
| |
|
56 |
|
| |
|
57 |
INTEGER |
| |
|
58 |
|
| |
|
59 |
|
| |
|
60 |
__u__ |
| |
|
61 |
|
| |
|
62 |
|
| |
|
63 |
UNSIGNED |
| |
|
64 |
|
| |
|
65 |
|
| |
|
66 |
__c__ |
| |
|
67 |
|
| |
|
68 |
|
| |
|
69 |
COUNTER32 |
| |
|
70 |
|
| |
|
71 |
|
| |
|
72 |
__s__ |
| |
|
73 |
|
| |
|
74 |
|
| |
|
75 |
STRING |
| |
|
76 |
|
| |
|
77 |
|
| |
|
78 |
__x__ |
| |
|
79 |
|
| |
|
80 |
|
| |
|
81 |
HEX STRING |
| |
|
82 |
|
| |
|
83 |
|
| |
|
84 |
__d__ |
| |
|
85 |
|
| |
|
86 |
|
| |
|
87 |
DECIMAL STRING |
| |
|
88 |
|
| |
|
89 |
|
| |
|
90 |
__n__ |
| |
|
91 |
|
| |
|
92 |
|
| |
|
93 |
NULLOBJ |
| |
|
94 |
|
| |
|
95 |
|
| |
|
96 |
__o__ |
| |
|
97 |
|
| |
|
98 |
|
| |
|
99 |
OBJID |
| |
|
100 |
|
| |
|
101 |
|
| |
|
102 |
__t__ |
| |
|
103 |
|
| |
|
104 |
|
| |
|
105 |
TIMETICKS |
| |
|
106 |
|
| |
|
107 |
|
| |
|
108 |
__a__ |
| |
|
109 |
|
| |
|
110 |
|
| |
|
111 |
IPADDRESS |
| |
|
112 |
|
| |
|
113 |
|
| |
|
114 |
__b__ |
| |
|
115 |
|
| |
|
116 |
|
| |
|
117 |
BITS |
| |
|
118 |
|
| |
|
119 |
|
| |
|
120 |
For example |
| |
|
121 |
|
| |
|
122 |
|
| |
|
123 |
''snmptrap -v 1 manager public enterprises.spider test-hub |
| |
|
124 |
3 0 '' interfaces.iftable.ifentry.ifindex.1 i |
| |
|
125 |
1'' |
| |
|
126 |
|
| |
|
127 |
|
| |
|
128 |
will send a generic link-up trap to manager, for interface |
| |
|
129 |
1. |
| |
|
130 |
|
| |
|
131 |
|
| |
|
132 |
If the network entity has an error processing the request |
| |
|
133 |
packet, an error packet will be returned and a message will |
| |
|
134 |
be shown, helping to pinpoint in what way the request was |
| |
|
135 |
malformed. If there were other variables in the request, the |
| |
|
136 |
request will be resent without the bad |
| |
|
137 |
variable. |
| |
|
138 |
!!SEE ALSO |
| |
|
139 |
|
| |
|
140 |
|
| |
|
141 |
snmpcmd(1), variables(5). |
| |
|
142 |
---- |