HPE Oneview Powershell Clear Alerts

You need: https://github.com/HewlettPackard/POSH-HPOneView/wiki

################################################################
#
#Naam:              Oneview Clear Alarms
#:           0.1
#Author:            Ward Vissers
################################################################

 

# Adding snapin, also check if powerCLI module is alsready added

if (!(get-module -name HPOneView.400 -erroraction silentlycontinue)) {
import-module HPOneView.400 | out-null
}

 

$oneviewserver = “oneview.
Connect-HPOVMgmt -Hostname $oneviewserver
Get- | Set- -Cleared
-State Active | Set-HPOVAlert -Cleared