Hi,
Some pointers.
The closest you can get to 'filter' on volume and sessions by using combination of commands.
First: Following command will tell you the 'users' and what 'shares' they are connected-to. In this example:
User=admin
Share = vol_test
7-mode> cifs sessions *
users
shares/files opened
192.168.0.131() (TEST.COM\administrator - pcuser)
vol_test
7-mode>
Second: Use the regular command 'cifs shares' to determine volume it's share (In this example, vol & share_name are same).
7-mode> cifs shares
Name Mount Point Description
---- ----------- -----------
vol_test /vol/vol_test everyone / Full Control
7-mode>
Some more handy commands: Data ONTAP 7-Mode:
To terminate CIFS only on a particular volume (vol1 is used as an example): -t is number of seconds...
filer> cifs terminate -t 5 -v vol1
To restart CIFS on a specific volume (for Data ONTAP 6.5 and later):
filer> cifs restart -v vol1
To close all the sessions for the entire filer node:
filer> cifs terminate -t 0
There is a KB:
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_terminate_CIFS_in_Data_ONTAP_7-Mode_for_a_particular_volume_or_...
If you would like to know : Which SMB protocol, or total number of CIFS sessions, then:
filer> cifs sessions -t
Using domain authentication. Domain type is Windows 2000.
Root volume language is not set. Use vol lang.
Number of WINS servers: 0
Total CIFS sessions: 1
CIFS open shares: 1
CIFS open files: 0
CIFS locks: 0
CIFS credentials: 1
IPv4 CIFS sessions: 1
IPv6 CIFS sessions: 0
Cumulative IPv4 CIFS sessions: 39
Cumulative IPv6 CIFS sessions: 0
CIFS sessions using security signatures: 0
SMB 1.0 CIFS sessions: 1
SMB 2.0 CIFS sessions: 0
SMB 2.1 CIFS sessions: 0
If you just want to know which users are connected:
filer> cifs sessions -s
Thanks!