Acknowledge a Spotlight Alarm

Dell.SoSSE.AcknowledgeAlarm (ConsoleTask)

For some alarms you might want to know that the alarm was raised, even after the severity returns to normal. These alarms are set to require acknowledgement or a form of action from the person monitoring the connections conditions.

Element properties:

TargetDell.SoSSE.Alarms
Application\%windir\%\system32\windowspowershell\v1.0\powershell.exe
WorkingDirectory
isRequireOutputTrue
AccessibilityPublic
EnabledTrue
CommentAcknowledges selected Spotlight alarms.

Source Code:

<ConsoleTask ID="Dell.SoSSE.AcknowledgeAlarm" Accessibility="Public" Enabled="true" Target="Dell.SoSSE.Alarms" RequireOutput="true" Comment="Acknowledges selected Spotlight alarms.">
<Assembly>Res.Dell.SoSSE.AcknowledgeAlarm</Assembly>
<Handler>ShellHandler</Handler>
<Parameters>
<Argument Name="WorkingDirectory"/>
<Argument Name="Application">%windir%\system32\windowspowershell\v1.0\powershell.exe</Argument>
<Argument>
"if (test-path \"%sosse_mp_path%\scripts\AcknowledgeAlarms.ps1\")
{
&amp; "\"%sosse_mp_path%\scripts\AcknowledgeAlarms.ps1\" `
$Target/Property[Type="Dell.SoSSE.Alarms"]/DSName$ `
$Target/Property[Type="Dell.SoSSE.Alarms"]/ConnectionName$ `
'$Target/Property[Type="Dell.SoSSE.Alarms"]/AlarmName$' `
$Target/Property[Type="Dell.SoSSE.Alarms"]/AlarmFirstRaisedMSEpoch$"
}
else
{
write-host 'AcknowledgeAlarms.ps1 cannot be accessed.'
write-host "`n`n"
write-host 'Please check that the environment variable \"sosse_mp_path\" is set and contains \"scripts\AcknowledgeAlarms.ps1\".'
}"
</Argument>
</Parameters>
</ConsoleTask>