My scripting is really rusty and I'm trying to remove all vSAN pre defined Alarms as there are 278 of them or some high number.
All the searching I have done doesn't seem relevant or have right syntax for 6.7
Thanks in anticipation
Twister
I wrote this PowerCLI script for you, it might be helpful:
Get-AlarmDefinition | Where-Object { $_.Name -like '*vSAN*'} | Set-AlarmDefinition -Enabled:$false
Thanks amirmohammadimir, that got going in right direction. Very much appreciated.
I amended the action to | Remove-AlarmDefinition so that the Alarms were removed as desired.
Final command works a treat
Get-AlarmDefinition | Where-Object {$_.Name -like '*vSAN*'} | Remove-AlarmDefinition
I wrote this PowerCLI script for you, it might be helpful:
Get-AlarmDefinition | Where-Object { $_.Name -like '*vSAN*'} | Set-AlarmDefinition -Enabled:$false
Thanks amirmohammadimir, that got going in right direction. Very much appreciated.
I amended the action to | Remove-AlarmDefinition so that the Alarms were removed as desired.
Final command works a treat
Get-AlarmDefinition | Where-Object {$_.Name -like '*vSAN*'} | Remove-AlarmDefinition