snmpd.conf.5n
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5N 代码 · 共 332 行
5N
332 行
.TH snmpd.conf 5n.SH Namesnmpd.conf \- Simple Network Management Protocol (SNMP) daemon configuration file.SH DescriptionThe .PN /etc/snmpd.conffile is a configuration file that contains information used by the .PN snmpddaemon to define the static variables whose values are notavailable in the kernel. It is created for you when yourun the.PN snmpsetupcommand, or you can create it manually. The system or network manager is usually responsible for maintaining it..NXR "snmpd configuration file" "defined".PPThe following are the .PN /etc/snmpd.conffile variables and their significance:.PP.NXR "snmpd configuration file" "parameters".PP.IP "sysDescr \fIID-string\fP" 5The .PN sysDescr variable describes the host.The \fIID-string\fP is the value of the variable .PN mgmt.mib.system.sysDescr .The default .PN sysDescrentry is of the form:.IPhostname:machine-type:software id.IPFor example, the .PN sysDescr entry for a MicroVAX II named .PN host1 that is running ULTRIX Version 4.0 might read:.EX 0sysDescr host1:MicroVAXII:ULTRIX V4.0 (Rev 64) System #2.EE.NXR "snmpd configuration file parameters" "sysDescr".NX(e) "snmpd configuration file parameters" "sysDescr".IP "interface speed \fIname\fP \fIspeed\fP" 5The .PN "interface speed"variable describes a value for the ManagementInformation Base (MIB) variable defined as:.IP.PN mgmt.mib.interfaces.ifTable.ifEntry.ifSpeed.IPThe \fIname\fP parameter mustbe an ULTRIX interface name, such as sl0.The following interfaces have default interface speeds and types:de, qe, ni, ln, se, scs, xna. If your system has one of theseinterfaces, you do not need to specify this parameter. .IPThe \fIspeed\fP parameter is a decimal number that describes the speed of thelink in bits per second. If you do not specify the \fIspeed\fP parameter,.PN snmpd does not return this variable and marks it as unavailable..NXR "snmpd configuration file parameters" "interface speed".IP "interface type \fIname\fP \fItype\fP" 5The .PN "interface type"variable describes a value for the MIB variablein the interface table defined as:.IP.PN mgmt.mib.interfaces.ifTable.ifEntry.ifType.IPThe \fIname\fP parameter must be an ULTRIX interface name, such as sl0..IPSee the sample .PN /etc/snmpd.conf file in the Examples section for a complete listing of thepossible \fItype\fP specifications. If the \fItype\fP parameter is not specified, .PN snmpd marks it as unavailable..NXR "snmpd configuration file parameters" "interface type".IP "tcpRtoAlgorithm \fIalgorithm-type\fP" 5The .PN tcpRtoAlgorithm variable describes a value for the MIB variable in the tcp group defined as.PN mgmt.mib.tcp.tcpRtoAlgorithm. This variable definesthe Retransmission Time-Out (RTO) algorithm your system uses..IPThe \fIalgorithm-type\fP parameter is anumeric code that represents the type of RTOalgorithm you are using. The default algorithm is Van Jacobson's, which is algorithm number 4.See the sample .PN snmpd.conffile in the Examples section for a listing of the other algorithms..IPIf you do not specifythis parameter, .PN snmpd does not return this variable, and marks it as unavailable..NXR "snmpd configuration file parameters" "tcpRtoAlgorithm".IP "community \fIname\fP \fIIP-address\fP \fItype\fP" 5The .PN community variable describes an SNMP community for the agent..IPThe \fIname\fP parameter is a string that describesthe name of the community. .IPThe \fIIP-address\fP parameter is the dot-notation Internet Protocol (IP)address for the server. Only SNMP packets coming from thataddress are accepted. If you specify 0.0.0.0 in the \fIaddress\fPfield, the SNMP agent honors the request from any NetworkManagement Station (NMS) having the \fIname\fP community..IPThe \fItype\fP parameter can be one of the following:.RS.IP read-only 0Permits only monitoring of variables..IP read-writePermits both monitoring and setting of variables..IP traps 0Generates traps when appropriateand sends them to the specified address with the specifiedcommunity name..IPThe possible traps currently generated arecold start and authentication failure..NXR "traps" "cold start".NXR "traps" "authentication failure".NXR "snmpd configuration file parameters" "community".RE.IPIf you do not specify any community, .PN snmpd uses the default community .PN publicwith an address 0.0.0.0 and a read-only type.Invalid uses of communitiesare logged with the .PN syslogcommand. To limit the use of a community to a finite group of machines, specify anothercommunity clause with the same community parameter \fIname\fP and adifferent address..IP "timeout \fIvalue\fP" 5The .PN timeoutvariable indicates the timeout value in secondsbetween the Agent and the Extended Agent. If the Agent does not receive aresponse within the allotted time, it returns an error message to theNMS. The default timeout value is 5 seconds..NXR "snmpd configuration file parameters" "timeout".IP "extension \fIextended-agent\fP \fIp1\fP \fIp2\fP \fIp3\fP \fIp4\fP" 5The .PN extension variable lists the pathname of the \fIextended-agent\fPthat the Agent activates..IPVariables \fIp1\fP through \fIp4\fP are passed by the Agent to theExtended Agent; \fIp1\fP is usually the process name to be given to theExtended Agent. .NXR "snmpd configuration file parameters" "extension".SH ExamplesThe default.PN snmpd.conffile contains only the following entry:.EXcommunity public 0.0.0.0 read-only.EEThe following is an example of an extensive.PN snmpd.conffile:.EX 0## snmpd.conf file#sysDescr host1:MicroVAXII:ULTRIX V4.0 System #2## Describe the TCP RTO algorithm you are using. Values# are listed in RFC 1066, under the TCP group variable: # tcpRtoAlgorithm# They are:## other (1) -- None of the below# constant (2) -- constant RTO# rsre (3) -- MILSTD 1778, appendix B# vanj (4) -- Van Jacobson's algorithm#tcprtoalgorithm 4## Describe who can use your SNMP daemon by# defining "communities". USAGE:## community <name><IP address><type>## This is a limited-use community; a finite number of # hosts can use it.# Can only query from this community.#community test1 128.45.10.100 read-onlycommunity test1 128.45.10.101 read-only## These are our wide-open, general-use communities. Specifying# 0.0.0.0 means that any address can use this community only# to monitor variables.#community public 0.0.0.0 read-only## This is our only management community. You can set variables # as well as monitor variables with this community. It is a # wide-open community as well.#community testwrite 0.0.0.0 read-write## This is a trap community. We send traps to these addresses # all from the same community name. Note that a 0.0.0.0 # address in a trap session is illegal and snmpd will ignore # that community definition.#community trap1 128.45.10.100 trapscommunity trap1 128.45.10.101 traps## The interface speed is given in bits/sec. USAGE:## interface speed <name> <speed>#interface speed sl0 9600## The <name> parameter for the interface type is the# same as the <name> for the interface speed, sl0 for# this example. USAGE:## interface type <name> <type>## The code number for the proper interface hardware type # is specified in RFC 1066 under the ifType object# definition.## Some possible values:## other (1)# regular1822 (2)# hdh1822 (3)# ddn-x25 (4)# rfc877-x25 (5)# ethernet-csmacd (6)# iso88023-csmacd (7)# iso88024-tokenBus (8)# iso88025-tokenRing (9)# iso88026-man (10)# starLan (11)# Proteon-10MBit (12)# Proteon-80MBit (13)# hyperchannel (14)# fddi (15)# lapb (16)# sdlc (17)# t1-carrier (18)# cept (19) -- European equivalent of T-1# basicIsdn (20)# primaryIsdn (21)# propPointToPointSerial (22) -- proprietary serial# interface type sl0 1## Timer value to time out requests to extended agents.#timeout 6## List of extended agents.#extension /etc/snmpextd snmpextd.EE.PPIn this example, note the following:.PP\(bu Community .PN test1 can be monitored by either 128.45.10.100 or 128.45.10.101..PP\(bu Community .PN public can be monitored by any NMS..PP\(bu Community .PN testwrite can be monitored and managed by any NMS..PP\(bu When a trap is generated, it is sent to community .PN trap1 at 128.45.10.100 or 128.45.10.101. Destinationaddresses must have a mechanism in place to handle the traps..SH See Also.\" These are in alphabetical order by section number. .\" For example,.\" cat(1), kill(1), tty(4), dump(8).\".\" Code as text as follows:.\"snmpext(3n), snmpd(8n), snmpsetup(8n).brRFC 1066\(em\fIManagement Information Base for Network Management of TCP/IP-based Internets\fR.brRFC 1067\(em\fIA Simple Network Management Protocol\fR.br.I Guide to Networking
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?