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

Verify that you are connected to a vCenter Server system.

1

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

Get-AdvancedSettingEntity $srv  –Name snmp.*
2

Modify the SNMP receiver data.

Get-AdvancedSettingEntity $srv  –Name snmp.receiver.2.community | Set-AdvancedSettingValue public
Get-AdvancedSettingEntity $srv  –Name snmp.receiver.2.enabled | Set-AdvancedSettingValue $true
Get-AdvancedSettingEntity $srv  –Name snmp.receiver.2.name | Set-AdvancedSettingValue 192.168.1.10

Now you can use SNMP with vCenter Server.