ValidCommunitiesValidCommunities

ValidCommunities 是的容器ValidCommunity元素。ValidCommunities is a container for ValidCommunity elements.

你可以使用此设置的 Windows Server 2008、 Windows Server 2008 R2 和 Windows Server 2012 核心安装中启用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
ValidCommunityValidCommunity 指定运行简单网络管理协议 (SNMP) 的计算机可以从其接受 SNMP 请求,如 GET、 SET、 GETNEXT 和 GETBULK 的社区名称。Specifies the community name from which the computer running Simple Network Management Protocol (SNMP) can accept SNMP requests, such as GET, SET, GETNEXT, and GETBULK.

有效配置阶段Valid Configuration Passes

通用化generalize

专用化specialize

父层次结构Parent Hierarchy

Microsoft-Windows-SNMP-Agent-Service | ValidCommunitiesMicrosoft-Windows-SNMP-Agent-Service | ValidCommunities

适用于Applies To

有关受支持的 Windows 版本和体系结构,该组件支持的列表,请参阅Microsoft-Windows-SNMP-Agent-服务For 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 sample 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