TrapConfigurationItems

TrapConfigurationItems 會指定陷阱組態所使用之社群名稱和陷阱的詳細資料。

您可以在 Windows Server 2008、Windows Server 2008 R2 和 Windows Server 2012的核心安裝中使用這項設定,方法是在 Windows Foundation 套件中啟用SNMP-SC

子元素

設定 描述
Community_Name 指定簡單網路管理通訊協定 (SNMP) 傳送陷阱的社群名稱。
設陷 指定 SNMP 傳送陷阱的 IP 位址。

有效的設定階段

generalize

特殊化

父階層

Microsoft-Windows-SNMP-Agent-Service | TrapConfiguration | TrapConfigurationItems

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 Microsoft-Windows-SNMP-Agent-Service

XML 範例

下列 XML 範例輸出示範如何設定 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>

TrapConfiguration