Information
To manage hosts securely, if SNMP is enabled, access must be restricted. Preferably, SNMPv3 should be employed as it offers superior security through key authentication and encryption compared to SNMPv1 or SNMPv2. Configuring the destination for SNMP traps is essential for ensuring monitoring data is directed to a legitimate and secure host.
Proper SNMP configuration is crucial to reduce the risk of misuse or compromise, especially if other management means are in place. SNMPv3's enhanced security features are pivotal for secure management and monitoring.
Solution
To correct the SNMP configuration, perform the following from the ESXi Shell or vCLI:
- If SNMP is not needed, disable it by running:
esxcli system snmp set --enable false <xhtml:ol start="2"> - If SNMP is needed, refer to the vSphere Monitoring and Performance guide, chapter 8 for steps to configure it.
Additionally, the following PowerCLI command may be used to implement the configuration:
# Update the host SNMP Configuration (single host connection required)
Get-VmHostSNMP | Set-VMHostSNMP -Enabled:$true -ReadOnlyCommunity '<secret>'
Notes:
- SNMP must be configured on each ESXi host
- SNMP settings can be configured using Host Profiles
Impact:
Improper SNMP configuration can redirect sensitive monitoring data to malicious hosts, risking exploitation and compromising host security.