是否可以为每个陷阱主机配置SNMP社区?
适用场景
- ONTAP 9
- SNMP
问题解答
- 否、ONTAP当前不具有此功能。
- 默认情况下、SNMP陷阱主机将添加到第一个已配置的社区:
示例:
::> snmp show
location: RTP
authtrap: 1
init: 1
traphosts:
SNMP-Traphost-1.net (SNMP-Traphost-1.net) <192.168.1.3> Community: community1
SNMP-Traphost-2.net (SNMP-Traphost-2.net) <192.168.1.4> Community: community1
SNMP-Traphost-3.net (SNMP-Traphost-3.net) <192.168.1.5> Community: community1
community:
ro community2
ro community1
- 我们希望如何配置:
traphosts:
SNMP-Traphost-1.net (SNMP-Traphost-1.net) <192.168.1.3> Community: community1
SNMP-Traphost-2.net (SNMP-Traphost-2.net) <192.168.1.4> Community: community2
SNMP-Traphost-3.net (SNMP-Traphost-3.net) <192.168.1.5> Community: community2