ValidCommunityValidCommunity

ValidCommunity 指定从其运行简单网络管理协议 (SNMP) 的计算机可以接受的 SNMP 请求如的社区名称获取集、 GETNEXT 和 GETBULK。ValidCommunity 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.

备注

子元素不显示在属性窗格中的 Windows 系统映像管理器 (Windows SIM) 将此元素添加到答案文件之前。The child elements do not appear in the Properties pane of Windows System Image Manager (Windows SIM) until you add this element to the answer file.

你可以使用此设置的 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
密钥Key 指定为社区的唯一键。Specifies a unique key for the community.
Value 指定的代理具有的权限的类型。Specifies the type of permissions that the agent has.

有效配置阶段Valid Configuration Passes

通用化generalize

专用化specialize

父层次结构Parent Hierarchy

Microsoft-Windows-SNMP-Agent-Service | ValidCommunities | ValidCommunityMicrosoft-Windows-SNMP-Agent-Service | ValidCommunities | ValidCommunity

适用于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>

ValidCommunitiesValidCommunities