You can display information about established SMB sessions, including the SMB connection and session ID and the IP address of the workstation using the session. You can display information about the session's SMB protocol version and continuously available protection level, which helps you identify whether the session supports nondisruptive operations.
You can display information for all sessions on your Storage Virtual Machine (SVM) in summary form. However, in many cases, the amount of output returned is large. You can customize what information is displayed in the output by specifying optional parameters:
You can enter -fields ? to determine what fields you can use.
The following command displays session information on SVM sessions vs1 established from a workstation with the IP address of 10.1.1.1:
cluster1::> vserver cifs session show -address 10.1.1.1 Node: node1 Vserver: vs1 Connection Session Open Idle ID ID Workstation Windows User Files Time ---------- ------- ---------------- ------------- ------- ------------ 3151272279 1 10.1.1.1 DOMAIN\joe 2 23s
The following command displays detailed session information on sessions with continuously available protection on SVM vs1. The connection was made by using the domain computer-machine account.
cluster1::> vserver cifs session show -instance -continuously-available Yes
Node: node1
Vserver: vs1
Session ID: 1
Connection ID: 3151274158
Incoming Data LIF IP Address: 10.2.1.1
Workstation IP address: 10.1.1.2
Authentication Mechanism: Kerberos
Windows User: DOMAIN\SERVER1$
UNIX User: pcuser
Open Shares: 1
Open Files: 1
Open Other: 0
Connected Time: 10m 43s
Idle Time: 1m 19s
Protocol Version: SMB3
Continuously Available: Yes
Is Session Signed: false
The following command displays session information on sessions using SMB 3.0 on SVM vs1. The user connected to this share from an SMB 3.0 capable client by using the LIF IP address; therefore, the authentication mechanism defaulted to NTLMv2. The connection must be made using Kerberos authentication to connect with continuously available protection.
cluster1::> vserver cifs session show -instance -protocol-version SMB3
Node: node1
Vserver: vs1
Session ID: 1
Connection ID: 3151272607
Incoming Data LIF IP Address: 10.2.1.2
Workstation IP address: 10.1.1.3
Authentication Mechanism: NTLMv2
Windows User: DOMAIN\administrator
UNIX User: pcuser
Open Shares: 1
Open Files: 0
Open Other: 0
Connected Time: 6m 22s
Idle Time: 5m 42s
Protocol Version: SMB3
Continuously Available: No
Is Session Signed: false