PermittedManagersPermittedManagers

PermittedManagers 指定電腦是否接受來自任何主機的簡易網路管理通訊協定 (SNMP) 要求。PermittedManagers specifies whether the computer accepts Simple Network Management Protocol (SNMP) requests from any host.

如果在指定的主機A1,電腦會接受只從該主機的 SNMP 要求。If a host is specified in A1, the computer accepts SNMP requests only from that host. 您可以指定主機電腦的名稱或 IP 位址的主機。You can specify either the host computer name or its IP address for the host. 建議Host用作主機電腦的名稱。It is recommended that Host be used as the host computer name.

您可以使用此設定的 Windows Server 2008、 Windows Server 2008 R2 和 Windows Server 2012 core 安裝中啟用SNMP SC Windows Foundation 封裝中。You can use this setting in core installations of Windows Server 2008, Windows Server 2008 R2, and Windows Server 2012, by enabling SNMP-SC in the Windows Foundation package.

子項目Child Elements

設定Setting 描述Description
A1A1 指定的主機的電腦接受 SNMP 要求。Specifies a host from which the computer accepts SNMP requests.

有效的設定階段Valid Configuration Passes

將一般化generalize

特製化specialize

父階層Parent Hierarchy

Microsoft-Windows-SNMP-Agent-Service | PermittedManagersMicrosoft-Windows-SNMP-Agent-Service | PermittedManagers

套用至Applies To

如需支援的 Windows 版本和架構,此元件支援的清單,請參閱Microsoft Windows-SNMP-代理程式-ServiceFor the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-SNMP-Agent-Service.

XML 範例XML Example

下列的 XML 輸出會顯示如何設定 SNMP。The following XML output shows how to set SNMP.

<PermittedManagers>
   <A1>networkhost</A1>
</PermittedManagers>
<RFC1156Agent>
   <sysContact>MyContact</sysContact>
   <sysLocation>MyLocation</sysLocation>
   <sysServices>65</sysServices>
</RFC1156Agent>
<TrapConfiguration>
   <TrapConfigurationItems wcm:action="add">
      <Community_Name>Private</Community_Name>
      <Traps>ComputerName</Traps>
   </TrapConfigurationItems>
   <TrapConfigurationItems wcm:action="add">
      <Community_Name>Public</Community_Name>
      <Traps>207.46.197.32</Traps>
   </TrapConfigurationItems>
</TrapConfiguration>
<ValidCommunities>
   <ValidCommunity wcm:action="add" wcm:keyValue="Community1">2</ValidCommunity>
   <ValidCommunity wcm:action="add" wcm:keyValue="Community2">4</ValidCommunity>
</ValidCommunities>

Microsoft-Windows-SNMP-Agent-ServiceMicrosoft-Windows-SNMP-Agent-Service