powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-AlarmAction



NAME
Get-AlarmAction

SYNOPSIS
Lists the actions of the specified alarm definitions.

SYNTAX
Get-AlarmAction [[-AlarmDefinition] ] [-ActionType ] [-Server ] [ onParameters>]


DESCRIPTION
Lists the actions of the specified alarm definitions.


PARAMETERS
-AlarmDefinition
Specify the alarm definitions for which you want to retrieve the configured actions.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-ActionType
Specify the type of the alarm actions you want to retrieve. The valid values are SendEmail, ExecuteScript, and
Send SNMP.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
AlarmAction


NOTES




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

C:\PS>Get-AlarmDefinition -Name "Host processor status" | Get-AlarmAction -ActionType "ExecuteScript", "SendSNMP",
"SendEmail"


Extract all PowerCLI supported alarm actions for the default alarm "Host processor status".





-------------- Example 2 --------------

C:\PS>Get-AlarmAction -AlarmDefinition "Host processor status" -ActionType "SendSNMP" -Server 'server IP'


Extract the alarm actions for the default alarm "Host processor status" by specifying the alarm by name.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-AlarmAction.html
Get-AlarmActionTrigger
Get-AlarmDefinition
New-AlarmAction
New-AlarmActionTrigger
Remove-AlarmAction