Starting with VMware Cloud Director 10.2.2, you can configure VMware Cloud Director appliance for SNMP, by configuring at least one community for the SNMP agent. When you configure the VMware Cloud Director SNMP agent for SNMP v1 and v2c, the agent supports polling.
In SNMP v1 and v2c, community strings are namespaces that contain one or more managed objects. Namespaces can act as a form for authentication but this does not secure the communication. To secure the communication, use SNMP v3.
To enable the VMware Cloud Director appliance SNMP agent to send and receive SNMP v1 and v2c messages, you must configure at least one community for the agent. An SNMP community defines a group of devices and management systems. Only devices and management systems that are members of the same community can exchange SNMP messages. A device or management system can be a member of multiple communities.
- Log in to the appliance shell as a user with administrative privileges.
- To configure an SNMP community, run the vicfg-snmp -c command.
For example, to configure public, east, and west network operation center communities, run the following command:
vicfg-snmp --comunities public,eastnoc,westnoc
Every time you specify a community with this command, the settings you specify overwrite the previous configuration. To enter multiple communities, use a comma as a separator.
- Enable SNMP by running the following command.