If you configure the vCenter Server Appliance SNMP agent for polling, it can listen for and respond to requests from SNMP management client systems, such as GET, GETNEXT, and GETBULK requests.
By default, the embedded SNMP agent listens on UDP port 161 for polling requests from management systems. You can use the
snmp.set --port command to configure an alternative port. To avoid conflicts between the port for the SNMP agent and the ports of other services, use a UDP port that is not defined in
/etc/services.
Procedure
- Access the appliance shell and log in as a user who has the administrator or super administrator role.
The default user with super administrator role is root.
- Run the snmp.set --port command to configure the port.
For example, run the following command:
snmp.set --port port
Here
port is the port for the SNMP agent to use for listening for polling requests.
Important: The port you specify must not be already in use by other services. Use IP addresses from the dynamic range, port 49152 and up.
- (Optional) If the SNMP agent is not enabled, enable it by running the snmp.enable command.