Get-AlarmTrigger Command | Vmware PowerCLI Reference

Get-AlarmTrigger

This cmdlet retrieves alarms triggers. The cmdlet returns a set of triggers that correspond to the filter criteria provided by the cmdlet parameters. To specify a server different from the default one, use the Server parameter.

Syntax

Get-AlarmTrigger
-AlarmDefinition < AlarmDefinition[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-TriggerType < TriggerType > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
AlarmDefinition AlarmDefinition[] named
  • pipeline
Specifies the alarm definitions for which you want to retrieve the triggers. The alarm name could be passed.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
optional TriggerType TriggerType named
Specifies the type of the trigger that you want to retrieve.

Output

VMware.VimAutomation.ViCore.Types.V1.Alarm.AlarmTrigger

Examples

Example 1

Get-AlarmTrigger -AlarmDefinition $alarm

Retrieves all alarm triggers.

Example 2

Get-AlarmTrigger -AlarmDefinition $alarm -TriggerType Event

Retrieves alarm triggers of type Event.

Related Commands

AlarmAction

This cmdlet retrieves the actions of the specified alarm definitions.

This cmdlet creates an alarm action and attaches it to the specified alarm.

This cmdlet removes an alarm action.

AlarmActionTrigger

This cmdlet retrieves the actions that trigger the specified alarm actions.

This cmdlet creates a new action trigger for the specified alarm action.

This cmdlet removes the alarm action triggers.

AlarmDefinition

This cmdlet retrieves the available alarm definitions.

This cmdlet creates a new alarm definition.

This cmdlet removes alarm definitions from the vSphere environment.

This cmdlet modifies the specified alarm definitions.

AlarmTrigger

This cmdlet retrieves alarms triggers.

This cmdlet adds ? new alarm trigger to the existing alarm or creates ? new alarm trigger.

AlarmTriggerArgument

This cmdlet creates a new AlarmTriggerArgument local object that defines the condition comparison under which an alarm is triggered. The AlarmTriggerArgument object is used as the Arguments parameter in the New-AlarmTrigger cmdlet.

AlarmTriggerArgumentAttributeName

This cmdlet fetches a list of attribute names of the alarm trigger argument for the "vsan.health.ssd.endurance" event type. (The most of attribute names for alarm trigger argument can be fetched by Get-EventType)