|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcDiagnosisAlert
NAME
Get-NcDiagnosisAlert
SYNOPSIS
Get a list of Alert Information objects.
SYNTAX
Get-NcDiagnosisAlert [[-Node] <String[]>] [[-Monitor] <String[]>] [[-AlertId
] <String[]>] [[-AlertingResource] <String[]>] [-Attributes <DiagnosisAlertI
nfo>] [-Controller <NcController[]>] [<CommonParameters>]
Get-NcDiagnosisAlert -Template [-Controller <NcController[]>] [<CommonParame
ters>]
Get-NcDiagnosisAlert -Query <DiagnosisAlertInfo> [-Attributes <DiagnosisAler
tInfo>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get a list of Alert Information objects.
PARAMETERS
-Node <String[]>
One or more nodes hosting the health monitor. Data ONTAP wildcards are
permitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Monitor <String[]>
One or more health monitors. Data ONTAP wildcards are permitted.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AlertId <String[]>
One or more alert ids. Data ONTAP wildcards are permitted.
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AlertingResource <String[]>
One or more unique names of the resource that generated the alert. Data
ONTAP wildcards are permitted.
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <DiagnosisAlertInfo>
For improved scalability in large clusters, provide a DiagnosisAlertInfo
object with various fields set to indicate which fields to return on al
l objects. Undesired fields should remain set to null. Use "Get-NcDiag
nosisAlert -Template" to get the initially empty DiagnosisAlertInfo obje
ct. If not specified, all data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Template
Specify to get an empty DiagnosisAlertInfo object for use with advanced
queries involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <DiagnosisAlertInfo>
For advanced queries, provide a DiagnosisAlertInfo object with various f
ields set to indicate which records to retrieve. Other fields should re
main set to null. Use "Get-NcDiagnosisAlert -Template" to get the initi
ally empty DiagnosisAlertInfo object.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
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
DataONTAP.C.Types.Diagnosis.DiagnosisAlertInfo
NOTES
Category: diagnosis
API: diagnosis-alert-get-iter
Family: cluster
-------------- Example 1 --------------
C:\PS>Get-NcDiagnosisAlert -Node VxeRubble-01
Get all of the diagnosis alerts for node VxeRubble-01.
Monitor AlertId AlertingResource Sub
system PerceivedSeverity Node
------- ------- ---------------- ---
------ ----------------- ----
node_connect DualPathToDiskShelf_Alert 50:05:0c:c1:02:01:6e:43 sas
_connect major VxeRubble-01
node_connect DualPathToDiskShelf_Alert 50:05:0c:c1:02:01:63:d2 sas
_connect major VxeRubble-01
-------------- Example 2 --------------
C:\PS>$q = Get-NcDiagnosisAlert -Template
$q.PerceivedSeverity = "major"
Get-NcDiagnosisAlert -Query $q
Get all of the diagnosis alerts with a perceived severity of "major".
Monitor AlertId AlertingResource Sub
system PerceivedSeverity Node
------- ------- ---------------- ---
------ ----------------- ----
node_connect DualPathToDiskShelf_Alert 50:05:0c:c1:02:01:6e:43 sas
_connect major VxeRubble-01
node_connect DualPathToDiskShelf_Alert 50:05:0c:c1:02:01:63:d2 sas
_connect major VxeRubble-01
node_connect DualPathToDiskShelf_Alert 50:05:0c:c1:02:01:6e:43 sas
_connect major VxeRubble-02
node_connect DualPathToDiskShelf_Alert 50:05:0c:c1:02:01:63:d2 sas
_connect major VxeRubble-02
RELATED LINKS
Set-NcDiagnosisAlert
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|