1 .\" /***********************************************************
2 .\" Copyright 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 .\" ******************************************************************/
23 .\" Japanese Version Copyright (c) 2002 Yuichi SATO
24 .\" all rights reserved.
25 .\" Translated Sat Feb 16 20:15:39 JST 2002
26 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
28 .TH SNMPTRAPD 8 "07 Aug 2001"
32 .\"O snmptrapd - Receive and log snmp trap messages.
33 snmptrapd - snmp trap メッセージを受信してログに記録する
36 snmptrapd [common options] [-P] [-o file] [-s] [-f] [-p port] [-e] [-l [d0-7]] [-a] [-C] [-c confFile] [-F FORMAT]
40 .\"O is an SNMP application that receives and logs snmp trap messages
41 .\"O sent to the SNMP-TRAP port (162) on the local machine.
43 はローカルマシンの SNMP-TRAP ポート (162) に送られてきた
44 snmp trap メッセージを受信してログに記録する SNMP アプリケーションである。
46 .\"O The log messages are of the form:
49 .I Sep 17 22:39:52 suffern snmptrapd: 128.2.13.41:
50 .I Cold Start Trap (0) Uptime:
54 .\"O must be run as root so that UDP port 162 can be opened.
56 は UDP ポート 162 をオープンするので、
58 .\"O .SH COMMAND LINE ARGUMENTS
60 .\"O In addition to the command arguments described under
62 .\"O the following arguments are understood:
64 で説明されているコマンドライン引き数に加え、以下の引き数が使用できる。
66 .\"O Print the logged messages to stderr.
69 .\"O Logs messages to a given file.
72 .\"O Specifies the port to run on, if the default 162 is not desired.
73 デフォルトの 162 番ポートで実行したくない場合に、
76 .\"O Log the messages to syslog(8). These syslog messages are sent with
77 .\"O the level of LOG_WARNING, and to the LOG_LOCAL0 facility (by
78 .\"O default). The demon will also fork away from its caller when
79 .\"O the syslog facilities are used.
80 .\"O This is the default unless the '-P' flag or '-o' flag is used.
81 メッセージを syslog(8) に記録する。
82 syslog メッセージは、(デフォルトでは) level を LOG_WARNING、
83 facility を LOG_LOCAL0 として送られる。
84 syslog 機能を使うと、デーモンは fork されて
86 これは '-P' フラグまたは '-o' フラグを使わない場合のデフォルトである。
88 .\"O Don't do reverse translation from IP address to host name.
89 IP アドレスからホスト名への逆変換を行わない。
91 .\"O Specifies the syslog facility to use, demon or local[0-7].
92 使用する syslog facility を指定する。demon または local[0-7]。
96 .\"O ignore AuthenticationFailure traps
98 に AuthenticationFailure trap を無視させる。
100 .\"O Causes the application to dump input and output packets.
101 アプリケーションに入出力パケットをダンプさせる。
103 .\"O Turn debugging output on.
106 .\"O Don't fork away from the caller when using syslog().
108 fork による呼び出し元から切り離しを行わない。
110 .\"O Don't read the default set of configuration files.
111 デフォルトの設定ファイルのセットを読み込ませない。
113 .\"O Force the reading of confFile as a configuration file.
114 confFile を設定ファイルとして読み込ませる。
116 .\"O When logging to standard output, use the format in the string FORMAT.
117 標準出力にログを記録するときに、フォーマットとして文字列 FORMAT を使う。
119 .\"O FORMAT is a printf-like string.
121 .\"O interprets the following formatting sequences:
122 FORMAT は printf で使われる文字列に似ている。
131 .\"O decimal number of seconds since the operating system's epoch
132 OS の紀元 (epoch) からの 10 進数での秒数
139 .\"O current (numeric) month
143 .\"O current day of month
159 .\"O up-time in seconds (in decimal)
160 稼働時間 (up-time) (10 進数での秒数)
163 .\"O the year field from the up-time
167 .\"O the numeric month field from the up-time
171 .\"O the day of month field from the up-time
175 .\"O the hour field from the up-time
179 .\"O the minute field from the up-time
183 .\"O the seconds field from the up-time
187 .\"O agent's hostname if available, otherwise IP address
189 取得不可能な場合はエージェントの IP アドレス。
192 .\"O agent's IP address
196 .\"O PDU's hostname if available, otherwise IP address
198 取得不可能な場合は PDU の IP アドレス。
201 .\"O PDU's IP address
205 .\"O Enterprise string
209 .\"O Trap type (numeric, in decimal)
213 .\"O Trap description
217 .\"O Trap sub-type (numeric, in decimal)
221 .\"O Security information from the PDU (community name for v1/v2c,
222 .\"O user and context for v3)
224 (v1/v2c におけるコミュニティ名、v3 におけるユーザーとコンテキスト)
227 .\"O list of trap's variables
230 .\"O In addition to these values, you may also specify an optional field
231 .\"O width and precision, just as in printf, and a flag value. The
232 .\"O following flags are legal:
233 これらの値に加え、フィールドの幅と精度 (printf と同じ) および
234 フラグ値などをオプションとして指定することもできる。
242 .\"O use leading zeros
246 .\"O use alternate form
249 .\"O The "use alternate form" flag changes the behavior of some format
250 .\"O flags. Normally, the fields that display time information base it
251 .\"O on the local time, but this flag tells them to use GMT instead.
252 「別形式を使用する」ためのフラグを指定すると、
253 いくつかのフォーマットフラグは動作が変更される。
254 通常、時間情報のフィールドはローカル時刻に基づいて表示されるが、
255 このフラグを使うと GMT を使うようになる。
256 .\"O Also, the variable list is normally a tab-separated list, but this
257 .\"O flag changes it to a comma-separated one. The alternate form for the
258 .\"O uptime is similar to "3 days, 0:14:34.65"
259 また通常、変数リストはタブで区切られるが、
260 このフラグを使うとコンマ区切りのリストになる。
261 稼働時間の別形式は、元と同じで "3 days, 0:14:34.65" のような形式である。
266 .\"O To get a message like "14:03 TRAP3.1 from humpty.ucd.edu" you
267 .\"O could use something like this:
268 "14:03 TRAP3.1 from humpty.ucd.edu" のような形式のメッセージにするためには、
273 snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A\en"
277 .\"O If you want the same thing but in GMT rather than local time, use
278 上と同じであるが、ローカル時刻ではなく GMT を使いたい場合は、
283 snmptrapd -P -F "%#02.2h:%#02.2j TRAP%w.%q from %A\en"
287 .\"O .SH EXTENSIBILITY AND CONFIGURATION
289 .\"O See the snmptrapd.conf(5) manual page.
290 snmptrapd.conf(5) の man ページを参照すること。
294 snmpcmd(1), syslog(8), variables(5)