TrapConfigurationTrapConfiguration

TrapConfiguration 指定陷阱配置项目的设置。TrapConfiguration specifies settings for trap configuration items.

你可以使用此设置的 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
TrapConfigurationItemsTrapConfigurationItems 指定有关单个陷阱的配置项目的详细信息。Specifies details about individual trap configuration items.

有效配置阶段Valid Configuration Passes

通用化generalize

专用化specialize

父层次结构Parent Hierarchy

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

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