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 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
索引鍵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-代理程式-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 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