Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/documentation/manual-pages/ja/man1/bsnmpd.1
18093 views
.\"
.\" Copyright (c) 2001-2003
.\"	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
.\"	All rights reserved.
.\"
.\" Author: Harti Brandt <[email protected]>
.\"
.\" 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.
.\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR 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 AUTHOR 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.
.\"
.\" $Begemot: bsnmp/snmpd/bsnmpd.1,v 1.4 2004/08/06 08:47:10 brandt Exp $
.\"
.\" $FreeBSD$
.Dd August 15, 2002
.Dt SNMPD 1
.Os
.Sh ̾��
.Nm snmpd
.Nd "����ץ�dz�ĥ��ǽ�� SNMP �ǡ����"
.Sh ��
.Nm
.Op Fl dh
.Op Fl c Ar file
.Op Fl D Ar options
.Op Fl I Ar paths
.Op Fl l Ar prefix
.Op Fl m Ar variable Ns Op = Ns Ar value
.Op Fl p Ar file
.Sh ����
.Nm
�ǡ����ϥ��󥿡��ͥå� SNMP (Simple Network Managment Protocol)
�����ܤ�̤����ޤ���
.\" ��ʸ: servers �� serves �θ��ꡣ
����ϺǤ����Ū�� MIB ���������ܤ򤹤뤳�Ȥ���Ū�Ȥ��ơ�
¾�Τ��٤Ƥ� MIB �ϥ������֥�⥸�塼����̤��Ƽ������Ƥ��ޤ���
.\" ��ʸ: server �� serve �θ��ꡣ(���ߤϽ�����)
���Τ褦�ˡ����곰�����Ӥˤ�
.Nm
����Ѥ��뤳�Ȥ��Ǥ��ޤ���
.Pp
���ץ����ϼ����̤�Ǥ�:
.Bl -tag -width ".It Fl D Ar options"
.It Fl d
���Υ��ץ�����
.Nm
�ΥǥХå��˻��Ѥ������Ȥ�ǡ���󲽤��ޤ���
.It Fl h
���Υ��ץ�����û������ˡ�Υ�å�������ɽ�����ޤ���
.It Fl c Ar file
ɸ�������ե�����������
.Ar file
����Ѥ��ޤ���
.It Fl D Ar options
�ǥХå����ץ�����
.Fl o
�θ�˥��ץ����ʸ����򥳥�ޤǶ��ڤäƻ��ꤷ�ޤ���
���Υ��ץ�������Ѳ�ǽ�Ǥ���
.Bl -tag -width ".It Cm trace Ns Cm = Ns Cm level"
.It Cm dump
���Υ��ץ����ϡ����٤Ƥ����������� PDU ��ü���˥���פ��ޤ���
.It Cm events
����ϥ��٥�ȥ饤�֥��
.Xr ( eventlib 3
����) �ΥǥХå���٥�� 10 �����ꤷ�ޤ���
.It Cm trace Ns Cm = Ns Cm level
���Υ��ץ����ϡ�snmp �饤�֥��Υȥ졼���ե饰��
���ꤵ�줿�ͤ����ꤷ�ޤ���
�����ͤ��̾�� C �ι�ʸ�ǿ�����ꤹ�뤳�Ȥ��Ǥ��ޤ���
.El
.It Fl I Ar paths
���Υ��ץ����ϡ����ꥤ�󥯥롼�ɥե�����򸡺�����
�ǥ��쥯�ȥ�Υꥹ�Ȥ򥳥���Ƕ��ڤäƻ��ꤷ�ޤ���
�ǥե���Ȥ�
.Pa /etc:/usr/etc/:/usr/local/etc
�Ǥ���
�����Υѥ��� <> ��̤�Ȥäƻ��ꤵ�줿 include �ǤΤ߸�������ޤ���
.\" ��ʸ: parantheses �� parenthesis �θ��ꡣ(���ߤϽ�����)
.It Fl l Ar prefix
pid ������ե������ basename �Ȥ���
.Ar prefix
����Ѥ��ޤ���
.It Fl m Ar variable Ns Op = Ns Ar value
�����ѿ���������ޤ���
.It Fl p Ar file
�ǥե���Ȥ� pid �ե��������������ؤȤ���ե��������ꤷ�ޤ���
.El
.Sh ����
.Nm
�ϥǥե���Ȥޤ��ϥ桼�����������ե�����Τɤ��餫����������ɤ߹��ߤޤ���
����ե�����ϼ��Υ����פιԤ���ʤ�ޤ�:
.Bl -bullet -offset indent
.It
�ѿ�����
.It
���������ʬΥ�� (���ѥ졼��)
.It
���󥯥롼��̿��
.It
MIB �ѿ�����
.El
.Pp
�Ԥ�Ĺ�᤮���硢
�Хå�����å���ǹԤ򽪤�餻�뤳�Ȥˤ�äơ�
���ιԤ�³���뤳�Ȥ��Ǥ��ޤ���
���ԤȺǽ�������ʸ����
.Dq #
����Ǥ���Ԥ�̵�뤵��ޤ���
.Pp
(����Ҥˤʤä�����ե������ޤ��) ���Τ�����ˤ����Ƥ��٤Ƥ� MIB �ѿ�������
ñ��Υȥ�󥶥������Ȥ��ơ����ʤ����
�ޤ��ñ��� SET PDU ���Ϥ������Τ褦�˰����ޤ���
���������ɤ߹���֤˼��Ԥ�����С�
.Nm
�Ͻ�λ���ޤ���
�⥸�塼��Υ����ɤˤȤ�ʤ�������ɤ߹��ߤˤ����뼺�Ԥϡ�
�⥸�塼��Υ����ɤμ��Ԥ�����������ޤ���
.Pp
�����
.Nm
�ν�������⥸�塼�뤬�����ɤ����Ȥ��������
.Nm
�� SIGHUP �������ä��Ȥ����ɤ߹��ޤ�ޤ���
.\" ��ʸ: red �� read �θ��ꡣ(���ߤϽ�����)
.Ss �ѿ�����
�ѿ������� 2 �Ĥη����Τ����� 1 �Ĥ�Ȥ�ޤ���
.Bd -unfilled -offset indent
variable := string
variable ?= string
.Ed
.Pp
string ������θ�κǽ�������ʸ������
�ǽ�β��Ԥ�
.Dq #
ʸ���ޤǤǤ���
1 ���ܤξ�硢string ��̵�����ѿ����������졢
2 ���ܤξ��ϡ������ѿ����ޤ�¸�ߤ��Ƥ��ʤ����ˤΤ���������ޤ���
.Pp
�ѿ�̾��ʸ������������������ǻϤޤꡢ
ʸ���������ޤ��ϥ�������������Τߤ�ޤ�褦�ʤ�ΤǤ���ɬ�פ�����ޤ���
.Ss ���������ʬΥ�� (���ѥ졼��)
�����̾�����դ���줿��������󤫤�ʤ�ޤ���
.Dq snmpd
��̾�����դ���줿���������� MIB �ѿ���������
������åȥ��åפδ֤�
.Nm
�� SIGHUP �������ä��Ȥ��ˤ����¹Ԥ���ޤ���
¾�Τ��٤ƤΥ��������ϡ�
Ʊ��̾�������������ˤ���⥸�塼�뤬�����ɤ���뤫���ޤ���
.Nm
�� SIGHUP �������ä��Ȥ��˴��˥⥸�塼�뤬�����ɤ���Ƥ�������
�¹Ԥ���ޤ���
.\" and that = �����⡢����⡢���ξ塢���ʤ�
���곫�ϻ��Υǥե���ȥ���������
.Dq snmpd
�Ǥ���
�����������ڤ��ؤ���ˤϼ��Τ褦�ʹ�ʸ��Ȥ��ޤ�
.Bd -unfilled -offset indent
%secname
.Ed
.Pp
�����ǡ�
.Ar secname
�ϥ���������̾���Ǥ���
Ʊ��
.Ar secname
�ϡ������ʣ���ξ��ǻȤ����Ȥ��Ǥ��ޤ���
���������Ҥ��٤Ƥ� 1 �ĤΥ��������ˤޤȤ���ޤ���
.Ss ���󥯥롼��̿��
���󥯥롼��̿�����Ѥ��Ƹ��ߤ�����ե�������̤Υե������ޤ�뤳�Ȥ��Ǥ���
����̿��ˤϼ��� 2 �Ĥη���������ޤ�:
.Bd -unfilled -offset indent
\&.include "file"
\&.include <"file">
.Ed
.Pp
1 ���ܤη����ϥ����ȥǥ��쥯�ȥ�ǥե�����Ǹ�������
2 ���ܤη����ϥ����ƥ।�󥯥롼�ɥѥ��ǻ��ꤵ�줿�ǥ��쥯�ȥ�Ǹ������ޤ���
����Ҥο��������Ѳ�ǽ�ʥ���ˤ�äƤΤ����¤���ޤ���
.Ss MIB �ѿ�����
MIB �ѿ��ϼ��ι�ʸ���������졣
.Bd -unfilled -offset indent
oid [ suboids ] = value
.Ed
.Pp
.Va oid
�����ꤵ����ѿ���̾���Ǥ���
���Τ�̾���κǸ�����Ǥ����������ǻ��Ѥ���ޤ���
�ѿ���������Ǥ���ʤ顢����ǥå��� (.0) ����ưŪ���ɲä��졢
���ꤹ��ɬ�פ�����ޤ���
�ѿ����ơ��֥���Ǥ���ʤ顢����ǥå���
.Va ( suboids )
����ꤷ�ʤ���Фʤ�ޤ���
����ǥå��������ǤϤ��줾��ɥåȤˤ�ä����Τ�Τȶ��ڤ�ޤ���
.\" ��ʸ: seperated �� separated �θ��ꡣ(���ߤϽ�����)
���ǤϿ��͡�ʸ����ޤ��� [] ��̤ǰϤޤ줿�ۥ���̾�Τ����줫�Ǥ���
���Ǥ����ͤǤ���ʤ顢����ϸ��ߤ� oid ���ɲä���ޤ���
���Ǥ�ʸ����Ǥ���ʤ顢ʸ�����Ĺ���ȳ�ʸ����
.Tn ASCII
�����ɤ����ߤ� oid ���ɲä���ޤ���
���Ǥ��ۥ���̾�Ǥ���ʤ顢�ۥ��Ȥ� IP ���ɥ쥹���������졢
IP ���ɥ쥹�� 4 �Ĥ����Ǥ� oid ���ɲä���ޤ���
.Pp
�㤨�С�
.Bd -unfilled -offset indent
myvariable.27.foooll.[localhost]."&^!"
.Ed
.Pp
�� oid �� oid
.Bd -unfilled -offset indent
myvariable.27.6.102.111.111.111.108.108.127.0.0.1.38.94.33
.Ed
.\" ���� .sp ���������ɲá�
.sp
�Ȥʤ�ޤ���
.Pp
�������ͤ϶���ʸ����ޤ��Ͽ��ͤΤ����줫�Ǥ���
ʸ����ʸ���ޤ��ϥ����������������Ϥޤäơ�ʸ����������������������������
�ޥ��ʥ������������ʤ�ʤ顢������ʤ��ǽ񤯤��Ȥ��Ǥ��ޤ���
����ʳ��ξ��ϡ�ʸ�������Ű�����ǰϤޤʤ���Фʤ�ޤ���
.Sh �ִ�
�ѿ����ִ��ϼ��Τ褦�˽񤭤ޤ���
.Bd -unfilled -offset indent
$(variable)
.Ed
.Pp
������
.Ar variable
���ִ������ѿ���̾���Ǥ���
̤����ѿ��λ��Ѥϥ��顼�Ȥߤʤ���ޤ���
.Sh ��Ϣ�ե�����
.Bl -tag -width ".It Pa /var/run/ Ns Ao Ar prefix Ac Ns \&.pid" -compact
.It Pa /etc/ Ns Ao Ar prefix Ac Ns \&.config
�ǥե���Ȥ�����ե����롣
�����ǡ��ǥե���Ȥ�
.Aq prefix
��
.Dq snmpd
�Ǥ���
.It Pa /var/run/ Ns Ao Ar prefix Ac Ns \&.pid
�ǥե���Ȥ� pid �ե����롣
.It Pa /etc:/usr/etc/:/usr/local/etc
�����ƥ।�󥯥롼�ɥե�����Υǥե���ȸ����ѥ���
.It Pa /usr/share/snmp/mibs/FOKUS-MIB.txt
.It Pa /usr/share/snmp/mibs/BEGEMOT-MIB.txt
.It Pa /usr/share/snmp/mibs/BEGEMOT-SNMPD.txt
�ǡ����Ǽ������줿 MIB �Τ���������
.El
.Sh ��Ϣ����
.Xr gensnmptree 1
.Sh ����
.Nm
�ϴ�Ϣ���� IETF RFC ��Ŭ�礷�Ƥ��ޤ���
.Sh ���
.An Hartmut Brandt Aq [email protected]
.Sh �Х�
���äȤ��롣