3947840b05
Interpretation of a chunk in cut.1 was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
116 lines
3.6 KiB
Groff
116 lines
3.6 KiB
Groff
.\" Copyright (c) 1983, 1990, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)logger.1 8.1 (Berkeley) 6/6/93
|
|
.\" %FreeBSD: src/usr.bin/logger/logger.1,v 1.15 2004/07/03 00:24:41 ru Exp %
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd June 6, 1993
|
|
.Dt LOGGER 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm logger
|
|
.Nd ¥·¥¹¥Æ¥à¤Î¥í¥°¤ËµÏ¿¤ò»Ä¤¹
|
|
.Sh ½ñ¼°
|
|
.Nm
|
|
.Op Fl 46Ais
|
|
.Op Fl f Ar file
|
|
.Op Fl h Ar host
|
|
.Op Fl p Ar pri
|
|
.Op Fl t Ar tag
|
|
.Op Ar message ...
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢
|
|
.Xr syslog 3
|
|
¥·¥¹¥Æ¥à¥í¥°µÏ¿¥â¥¸¥å¡¼¥ë¤È¤Î¥·¥§¥ë¥³¥Þ¥ó¥É¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£
|
|
.Pp
|
|
¼¡¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍѲÄǽ¤Ç¤¹:
|
|
.Bl -tag -width indent
|
|
.It Fl 4
|
|
.Nm
|
|
¤¬ IPv4 ¥¢¥É¥ì¥¹¤Î¤ß¤ò»ÈÍѤ¹¤ë¤è¤¦¡¢¶¯À©¤·¤Þ¤¹¡£
|
|
.It Fl 6
|
|
.Nm
|
|
¤¬ IPv6 ¥¢¥É¥ì¥¹¤Î¤ß¤ò»ÈÍѤ¹¤ë¤è¤¦¡¢¶¯À©¤·¤Þ¤¹¡£
|
|
.It Fl A
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï
|
|
.Nm
|
|
¤Ï¡¢¥Û¥¹¥È¤¬Ê£¿ô¤Î A ¤Þ¤¿¤Ï AAAA ¥ì¥³¡¼¥É¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ç¤â¡¢
|
|
¥á¥Ã¥»¡¼¥¸¤òñ°ì¤Î¥¢¥É¥ì¥¹¤Ë¤Î¤ßÁ÷¿®¤·¤è¤¦¤È¤·¤Þ¤¹¡£
|
|
ËÜ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤ë¤È¡¢
|
|
.Nm
|
|
¤Ï¥á¥Ã¥»¡¼¥¸¤ò¤¹¤Ù¤Æ¤Î¥¢¥É¥ì¥¹¤ËÁ÷¿®¤·¤è¤¦¤È¤·¤Þ¤¹¡£
|
|
.It Fl i
|
|
logger ¥×¥í¥»¥¹¤Î¥×¥í¥»¥¹ ID ¤ò³Æ¹Ô¤ËµÏ¿¤·¤Þ¤¹¡£
|
|
.It Fl s
|
|
¥·¥¹¥Æ¥à¤Î¥í¥°¤ÈƱÍͤˡ¢É¸½à¥¨¥é¡¼½ÐÎÏ¤Ë¥í¥°¤ò½ÐÎϤ·¤Þ¤¹¡£
|
|
.It Fl f Ar file
|
|
»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤ÎÆâÍƤò¥í¥°¤È¤·¤ÆµÏ¿¤·¤Þ¤¹¡£
|
|
.It Fl h Ar host
|
|
¥í¡¼¥«¥ë¤Ç¥í¥°¤¹¤ëÂå¤ï¤ê¤Ë¡¢¥ê¥â¡¼¥È¥·¥¹¥Æ¥à
|
|
.Ar host
|
|
¤Ø¥á¥Ã¥»¡¼¥¸¤òÁ÷¤ê¤Þ¤¹¡£
|
|
.It Fl p Ar pri
|
|
»ØÄꤷ¤¿Í¥Àè½ç°Ì¤Ç¥á¥Ã¥»¡¼¥¸¤òÆþÎϤ·¤Þ¤¹¡£Í¥Àè½ç°Ì¤Ï¡¢
|
|
¿ô»ú¤Ç»ØÄꤹ¤ë¤«¡¢``¥Õ¥¡¥·¥ê¥Æ¥£.¥ì¥Ù¥ë'' ¤ÎÁȤǻØÄꤵ¤ì¤Þ¤¹¡£
|
|
¤¿¤È¤¨¤Ð¡¢``\-p local3.info'' ¤Ï
|
|
.Ar local3
|
|
¥Õ¥¡¥·¥ê¥Æ¥£¤Ë¡¢¾ðÊó(
|
|
.Ar info
|
|
)¥ì¥Ù¥ë¤Ç¥á¥Ã¥»¡¼¥¸¤òµÏ¿¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢``user.notice'' ¤Ç¤¹¡£
|
|
.It Fl t Ar tag
|
|
³Æ¹Ô¤Ë»ØÄꤷ¤¿
|
|
.Ar tag
|
|
¤òËä¤á¹þ¤ß¤Þ¤¹¡£
|
|
.It Ar message
|
|
¤³¤Î
|
|
.Ar message
|
|
¤ò¥í¥°¤È¤·¤ÆµÏ¿¤·¤Þ¤¹¡£¤³¤ì¤¬»ØÄꤵ¤ì¤Æ¤ª¤é¤º¡¢
|
|
.Fl f
|
|
¤â»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢É¸½àÆþÎϤò¥í¥°¤È¤·¤ÆµÏ¿¤·¤Þ¤¹¡£
|
|
.El
|
|
.Sh ¿ÇÃÇ
|
|
.Ex -std
|
|
.Sh »ÈÍÑÎã
|
|
.Bd -literal -offset indent -compact
|
|
logger System rebooted
|
|
|
|
logger \-p local0.notice \-t HOSTIDM \-f /dev/idmc
|
|
.Ed
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr syslog 3 ,
|
|
.Xr syslogd 8
|
|
.Sh µ¬³Ê
|
|
.Nm
|
|
¤Ï
|
|
.St -p1003.2
|
|
½àµò¤Ç¤¹¡£
|