FAS and V-Series Storage Systems Discussions
Anyone know how to view open sessions on a 7-Mode Ontap 8 then close all the sessions?
I see documented "cifs sessions" but I dont see any commands where I can filter on the volume or the share.
See The Solution
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=adminShare = vol_test
7-mode> cifs sessions *
192.168.0.131() (TEST.COM\administrator - pcuser)vol_test7-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 sharesName Mount Point Description---- ----------- -----------vol_test /vol/vol_test everyone / Full Control7-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 -tUsing domain authentication. Domain type is Windows 2000.Root volume language is not set. Use vol lang.Number of WINS servers: 0Total CIFS sessions: 1CIFS open shares: 1CIFS open files: 0CIFS locks: 0CIFS credentials: 1IPv4 CIFS sessions: 1IPv6 CIFS sessions: 0Cumulative IPv4 CIFS sessions: 39Cumulative IPv6 CIFS sessions: 0CIFS sessions using security signatures: 0SMB 1.0 CIFS sessions: 1SMB 2.0 CIFS sessions: 0SMB 2.1 CIFS sessions: 0
If you just want to know which users are connected:filer> cifs sessions -s
View solution in original post
Thanks, it seems a little complex. I can use MMC and see who is connected to a shared folder.