< Back
Get-NfProtectionService
Post
NAME Get-NfProtectionService
SYNOPSIS
Get Protection Services
SYNTAX
Get-NfProtectionService [-Type <String>] [<CommonParameters>]
Get-NfProtectionService [-Type <String>] [-Path <String>] [-ByPath] [<CommonParameters>]
Get-NfProtectionService [-Type <String>] [-Name <String>] [-ByName] [<CommonParameters>]
DESCRIPTION
Get Services
PARAMETERS
-Type <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Path <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Name <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ByPath [<SwitchParameter>]
Invoke to resolve ambiguity between piped inputs
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ByName [<SwitchParameter>]
Invoke to resolve ambiguity between piped inputs
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Nothing if no matching protection services are found.
All protection services if no criteria given
Otherwise, matching protection services
-------------------------- EXAMPLE 1 --------------------------
PS C:\\temp>Get-ProtectionService | ft
name managerNodes isManager runNumber recursive sourceDataset type state isLocked isSyncing
---- ------------ --------- --------- --------- ------------- ---- ----- -------- ---------
Gold @{primary=; secondary=} True 0 False pool1/gold scheduled enabled False False
gold @{primary=; secondary=} True 21 True pool1/gold scheduled enabled False False
basic @{primary=; secondary=} True 23 True pool1/basic scheduled enabled False False
Get all services
-------------------------- EXAMPLE 2 --------------------------
PS C:\\temp>Get-ProtectionService -Type ScheduledSnapshots | ft
name managerNodes isManager runNumber recursive sourceDataset type state isLocked isSyncing
---- ------------ --------- --------- --------- ------------- ---- ----- -------- ---------
Gold @{primary=; secondary=} True 0 False pool1/gold scheduled enabled False False
Get all Schedulued Snapshot Services
-------------------------- EXAMPLE 3 --------------------------
PS C:\\temp>Get-ProtectionService -Type ScheduledReplication -Name gold | ft
name remoteNode managerNodes isManager isSource runNumber
recursive sourceDataset destinationDataset type
---- ---------- ------------ --------- -------- ---------
--------- ------------- ------------------ ----
gold @{proto=https; host=stor-nex-eg-01-rep2; port=8443} @{primary=; secondary=} True True 21
True pool1/gold dr-pool1/gold scheduled
Get all Schedulued Replication Services called gold
RELATED LINKS
SYNOPSIS
Get Protection Services
SYNTAX
Get-NfProtectionService [-Type <String>] [<CommonParameters>]
Get-NfProtectionService [-Type <String>] [-Path <String>] [-ByPath] [<CommonParameters>]
Get-NfProtectionService [-Type <String>] [-Name <String>] [-ByName] [<CommonParameters>]
DESCRIPTION
Get Services
PARAMETERS
-Type <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Path <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Name <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ByPath [<SwitchParameter>]
Invoke to resolve ambiguity between piped inputs
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ByName [<SwitchParameter>]
Invoke to resolve ambiguity between piped inputs
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Nothing if no matching protection services are found.
All protection services if no criteria given
Otherwise, matching protection services
-------------------------- EXAMPLE 1 --------------------------
PS C:\\temp>Get-ProtectionService | ft
name managerNodes isManager runNumber recursive sourceDataset type state isLocked isSyncing
---- ------------ --------- --------- --------- ------------- ---- ----- -------- ---------
Gold @{primary=; secondary=} True 0 False pool1/gold scheduled enabled False False
gold @{primary=; secondary=} True 21 True pool1/gold scheduled enabled False False
basic @{primary=; secondary=} True 23 True pool1/basic scheduled enabled False False
Get all services
-------------------------- EXAMPLE 2 --------------------------
PS C:\\temp>Get-ProtectionService -Type ScheduledSnapshots | ft
name managerNodes isManager runNumber recursive sourceDataset type state isLocked isSyncing
---- ------------ --------- --------- --------- ------------- ---- ----- -------- ---------
Gold @{primary=; secondary=} True 0 False pool1/gold scheduled enabled False False
Get all Schedulued Snapshot Services
-------------------------- EXAMPLE 3 --------------------------
PS C:\\temp>Get-ProtectionService -Type ScheduledReplication -Name gold | ft
name remoteNode managerNodes isManager isSource runNumber
recursive sourceDataset destinationDataset type
---- ---------- ------------ --------- -------- ---------
--------- ------------- ------------------ ----
gold @{proto=https; host=stor-nex-eg-01-rep2; port=8443} @{primary=; secondary=} True True 21
True pool1/gold dr-pool1/gold scheduled
Get all Schedulued Replication Services called gold
RELATED LINKS