To use SNMP, you must first configure the SNMP settings of the vCenter Server.

Connect to a vSphere server.


View the current SNMP configuration settings of the vCenter Server from the $srv variable.

Get-AdvancedSetting –Entity $srv  –Name snmp.*

Modify the SNMP receiver data.

Get-AdvancedSetting –Entity $srv  –Name | Set-AdvancedSetting –Value public
Get-AdvancedSetting –Entity $srv  –Name snmp.receiver.2.enabled | Set-AdvancedSetting –Value $true
Get-AdvancedSetting –Entity $srv  –Name | Set-AdvancedSetting –Value

Now you can use SNMP with vCenter Server.