|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcNetDns
NAME
Get-NcNetDns
SYNOPSIS
Get vserver DNS configuration info.
SYNTAX
Get-NcNetDns [[-Vserver] <String[]>] [-Domain <String[]>] [-Attributes <NetD
nsInfo>] [-VserverContext <String>] [-Controller <NcController[]>] [<CommonP
arameters>]
Get-NcNetDns -Template [-VserverContext <String>] [-Controller <NcController
[]>] [<CommonParameters>]
Get-NcNetDns -Query <NetDnsInfo> [-Attributes <NetDnsInfo>] [-VserverContext
<String>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get vserver DNS configuration info.
PARAMETERS
-Vserver <String[]>
Restrict results to the specified vserver(s). Data ONTAP wildcards are
permitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Domain <String[]>
Restrict results to the specified DNS domain(s). Data ONTAP wildcards a
re permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <NetDnsInfo>
For improved scalability in large clusters, provide a NetDnsInfo object
with various fields set to indicate which fields to return on all object
s. Undesired fields should remain set to null. Use "Get-NcNetDns -Temp
late" to get the initially empty NetDnsInfo object. If not specified, a
ll data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each 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 NetDnsInfo 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 <NetDnsInfo>
For advanced queries, provide a NetDnsInfo object with various fields se
t to indicate which records to retrieve. Other fields should remain set
to null. Use "Get-NcNetDns -Template" to get the initially empty NetDn
sInfo 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
NetApp.Ontapi.Filer.C.Net810.NetDnsInfo
NOTES
Category: net
API: net-dns-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcNetDns
List DNS configuration info for all vservers in the cluster.
Vserver DnsState Domains NameServers
------- -------- ------- -----------
Barker01 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
Barker03 enabled {sea-tm} {10.58.88.21, 10.58.88.22}
Cerebus enabled {sea-tm.netapp.com} {10.58.88.21}
Knight01 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
Knight02 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
Lionetti01 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
Mun01 enabled {sea-tm.netapp.com} {10.58.88.21}
Parker01 enabled {sea-tm.netapp.com} {10.58.88.21}
-------------- Example 2 --------------
C:\PS>$q = Get-NcNetDns -Template
$q.NameServers = "10.58.88.22"
Get-NcNetDns -Query $q
Get all DNS configurations that include a name server at address '10.58.88.2
2'.
Vserver DnsState Domains NameServers
------- -------- ------- -----------
Barker01 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
Barker03 enabled {sea-tm} {10.58.88.21, 10.58.88.22}
Knight01 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
Knight02 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
Lionetti01 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
RELATED LINKS
New-NcNetDns
Set-NcNetDns
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|