值 (microsoft-windows-snmp-agent-service-validcommunities-validcommunity-value)
Value
指定 ValidCommunity的值。
注意 在将 ValidCommunity 添加到应答文件之前,此元素不会出现在 Windows 系统映像管理器 (Windows SIM) 的属性窗格中。
可以在 Windows Server 2008、Windows Server 2008 R2 和 Windows server 2012 的核心安装中使用此设置,方法是在 Windows Foundation 包中启用 SNMP-SC。
值
1 |
指定社区名称没有权限。 |
2 |
指定社区名称没有通知权限。 |
4 |
指定社区名称具有只读权限。 |
8 |
指定社区名称具有读/写权限。 |
16 |
指定社区名称具有读取/创建权限。 |
有效配置阶段
generalize
specialize
父层次结构
Microsoft-Windows-SNMP-Agent-Service | ValidCommunities | ValidCommunity | 值
应用于
有关此组件支持的受支持 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>