Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Get-NcDiagnosisSubscription


NAME
Get-NcDiagnosisSubscription

SYNOPSIS
Get a list of Subscriptions for Notifications objects.

SYNTAX
Get-NcDiagnosisSubscription [[-Node] <String[]>] [[-SubscriptionId] <String[
]>] [-Monitor <String[]>] [-NotifyDestNode <String[]>] [-NotifyDestHm <Strin
g[]>] [-ClassName <String[]>] [-EventType <String[]>] [-Attributes <Diagnosi
sSubscriptionsInfo>] [-Controller <NcController[]>] [<CommonParameters>]

Get-NcDiagnosisSubscription -Template [-Controller <NcController[]>] [<Commo
nParameters>]

Get-NcDiagnosisSubscription -Query <DiagnosisSubscriptionsInfo> [-Attributes
<DiagnosisSubscriptionsInfo>] [-Controller <NcController[]>] [<CommonParame
ters>]


DESCRIPTION
Get a list of Subscriptions for Notifications 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

-SubscriptionId <String[]>
One or more subscription ids. Data ONTAP wildcards are permitted.

Required? false
Position? 2
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? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-NotifyDestNode <String[]>
One or more nodes hosting the health monitor that is subscribing for not
ification. Data ONTAP wildcards are permitted.

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

-NotifyDestHm <String[]>
One or more health monitors subscribing for notification. Data ONTAP wi
ldcards are permitted.

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

-ClassName <String[]>
One or more class names of changed resource. Data ONTAP wildcards are p
ermitted.

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

-EventType <String[]>
One or more type of event for which notification is generated. Data ONT
AP wildcards are permitted.

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

-Attributes <DiagnosisSubscriptionsInfo>
For improved scalability in large clusters, provide a DiagnosisSubscript
ionsInfo object with various fields set to indicate which fields to retu
rn on all objects. Undesired fields should remain set to null. Use "Ge
t-NcDiagnosisSubscription -Template" to get the initially empty Diagnosi
sSubscriptionsInfo object. If not specified, all data is returned for e
ach 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 DiagnosisSubscriptionsInfo object for use with a
dvanced queries involving the Query attribute.

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

-Query <DiagnosisSubscriptionsInfo>
For advanced queries, provide a DiagnosisSubscriptionsInfo object with v
arious fields set to indicate which records to retrieve. Other fields s
hould remain set to null. Use "Get-NcDiagnosisSubscription -Template" t
o get the initially empty DiagnosisSubscriptionsInfo 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.DiagnosisSubscriptionsInfo


NOTES


Category: diagnosis
API: diagnosis-subscriptions-get-iter
Family: cluster

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

C:\PS>Get-NcDiagnosisSubscription -EventType rm_add


Get all of the diagnosis subscriptions with event type "rm_add".


ClassName : nschm_shelf_info
CreationTime : 1339506150
EventType : rm_add
FailThresh : 1
InstanceName :
MaxNotifyPeriod : 1
Monitor : node_connect
NcController : 192.168.182.144
Node : vsim_cluster-01
NotifyDestHm : system_connect
NotifyDestNode : vsim_cluster-01
NotifyFptr :
NotifyTable : mgwd_schm_helper_view
NotifyType : dsmf_type
PscOption : False
SubscriptionId : SasShelfSubAdd
TimeGapNotify : 2
FailThreshSpecified : True
MaxNotifyPeriodSpecified : True
NotifyFptrSpecified : False
PscOptionSpecified : True
TimeGapNotifySpecified : True


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

C:\PS>$q = Get-NcDiagnosisSubscription -Template
$q.NotifyType = "dsmf_type"
Get-NcDiagnosisSubscription -Query $q


Get the diagnosis subscriptions with the specified notify type.


Monitor SubscriptionId ClassName EventType
NotifyDestHm Node
------- -------------- --------- ---------
------------ ----
node_connect SasShelfSubAdd nschm_shelf_info rm_add
system_connect vsim_cluster-01
node_connect SasShelfSubDel nschm_shelf_info rm_del
system_connect vsim_cluster-01
node_connect SasShelfSubMod nschm_shelf_info rm_mod
system_connect vsim_cluster-01



RELATED LINKS
New-NcDiagnosisSubscription
Set-NcDiagnosisSubscription







 Data ONTAP® PowerShell Toolkit