Data ONTAP® PowerShell Toolkit

Cmdlet: Get-NaCifsSession


NAME
Get-NaCifsSession

SYNOPSIS
Gives information on current CIFS activity.

SYNTAX
Get-NaCifsSession [-User <String>] [-Host <String>] [-Controller <NaControll
er>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<Commo
nParameters>]


DESCRIPTION
Gives information on current CIFS activity. Without arguments, it returns a
summary of information about the filer and lists the users who are connected
to the filer.


PARAMETERS
-User <String>
User name. If user is specified , this api returns information about the
specified user, along with the names and access level of files that the
user has opened. This api returns information about all the users, if t
he user is specified as '*' or is not specified.

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

-Host <String>
IP address/machine name of the user's client machine.

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

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

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

-WarningAction <ActionPreference>


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

-WarningVariable <String>


Required? false
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.Cifs.CifsSessionInfo


NOTES


Category: cifs
API: cifs-session-list-iter-start, cifs-session-list-iter-next, cifs-ses
sion-list-iter-end

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

C:\PS>Get-NaCifsSession


List all current CIFS connections.


ChangeNotifies : 0
Dirs : 0
Files : 0
HostIp : 10.61.167.22
HostName : 10.61.167.22
Shares : 0
User : (RTPRRE\administrator - pcuser)
VolumesList : {}



RELATED LINKS
Get-NaCifsShare







 Data ONTAP® PowerShell Toolkit