|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcCifsServer
NAME
Get-NcCifsServer
SYNOPSIS
Get a list of CIFS Servers.
SYNTAX
Get-NcCifsServer [[-Name] <String[]>] [-VserverContext <String>] [-Attribute
s <CifsServerConfig>] [-Controller <NcController[]>] [<CommonParameters>]
Get-NcCifsServer [-VserverContext <String>] -Template [-Controller <NcContro
ller[]>] [<CommonParameters>]
Get-NcCifsServer [-VserverContext <String>] -Query <CifsServerConfig> [-Attr
ibutes <CifsServerConfig>] [-Controller <NcController[]>] [<CommonParameters
>]
DESCRIPTION
Get a list of CIFS Servers.
PARAMETERS
-Name <String[]>
The name of one or more CIFS servers to get. Data ONTAP wildcards are p
ermitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
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
-Attributes <CifsServerConfig>
For improved scalability in large clusters, provide a CifsServerConfig o
bject with various fields set to indicate which fields to return on all
objects. Undesired fields should remain set to null. Use "Get-NcCifsSe
rver -Template" to get the initially empty CifsServerConfig object. 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 CifsServerConfig object for use with advanced qu
eries involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <CifsServerConfig>
For advanced queries, provide a CifsServerConfig object with various fie
lds set to indicate which records to retrieve. Other fields should rema
in set to null. Use "Get-NcCifsServer -Template" to get the initially e
mpty CifsServerConfig 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.Cifs.CifsServerConfig
NOTES
Category: cifs
API: cifs-server-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcCifsServer
Get all of the CIFS servers in the current cluster or vserver.
AuthStyle : domain
CifsServer : BARKER01
DefaultSite :
Domain : TEST.TestDomain
DomainWorkgroup : TEST
OrganizationalUnit :
AuthStyle : domain
CifsServer : MUN01
DefaultSite :
Domain : TEST.TestDomain
DomainWorkgroup : TEST
OrganizationalUnit :
-------------- Example 2 --------------
C:\PS>$query = Get-NcCifsServer -Template
$query.AuthStyle = "domain"
Get-NcCifsServer -Query $query
Get all of the CIFS servers in the current cluster or vserver with an AuthSt
yle of "domain".
AuthStyle : domain
CifsServer : BARKER01
DefaultSite :
Domain : TEST.TestDomain
DomainWorkgroup : TEST
OrganizationalUnit :
AuthStyle : domain
CifsServer : MUN01
DefaultSite :
Domain : TEST.TestDomain
DomainWorkgroup : TEST
OrganizationalUnit :
RELATED LINKS
Add-NcCifsServer
Remove-NcCifsServer
Set-NcCifsServer
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|