Table of contents
TOC
Collapse the table of content
Expand the table of content

Key

Last Updated: 12/12/2016

Key specifies a unique key for an SNMP community.

Note
The value for Key is added to the answer file as an attribute of the ValidCommunity element. The attribute wcm:keyValue is used to identify multiple list item types of ValidCommunity. For example, you can specify three different communities, by using the Key values of 1, 2, and 3.

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.

Values

Key

Specifies a unique key for the community. Key is a string.

Valid Passes

generalize

specialize

Parent Hierarchy

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

Applies To

For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-SNMP-Agent-Service.

XML Example

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>

ValidCommunity

Send comments about this topic to Microsoft

© 2017 Microsoft