PowerCLI – Remove SNMP Traps from vCenter Alarms

Use Case

You do not want to flood HP OpenView, Netcool or any other SNMP trap receiver with the out of the box vCenter alarms.

Ex. Cannot connect to storage


The script will ask for the vCenter name.   Log Insight show 30 alarms were reconfigured (not removed)

The Script