vSphere PowerCLI Reference

New-AlarmActionTrigger

Synopsis

Creates a new action trigger for the specified alarm action.

Syntax

New-AlarmActionTrigger [-StartStatus] <InventoryItemStatus> [-EndStatus] <InventoryItemStatus> -AlarmAction <AlarmAction> [-Repeat] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-AlarmAction
Get-AlarmActionTrigger
Get-AlarmDefinition
New-AlarmAction
Remove-AlarmAction
Remove-AlarmActionTrigger
Set-AlarmDefinition

Detailed Description

Creates a new action trigger for the specified alarm action.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
StartStatusInventoryItemStatusSpecify the start status for the alarm action. The valid values are Green, Yellow, and Red.truefalse
EndStatusInventoryItemStatusSpecify the end status for the alarm action. The valid values are Green, Yellow, and Red.truefalse
AlarmActionAlarmActionSpecify the alarm action for which you want to create an action trigger.truetrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
RepeatSwitchParameterSpecify if you want the alarm action to repeat untilfalsefalse
WhatIfSwitchParameterIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

AlarmActionTrigger

Notes

Examples

-------------- Example 1 --------------

Get-AlarmDefinition -Name "Alarm1" | Get-AlarmAction | New-AlarmActionTrigger -StartStatus 'Red' -EndStatus 'Yellow' -Repeat

Creates an action trigger for all actions for the specified alarm definition.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.