Difference between open files counter in "vserver cifs session show" and amount of actual files listed in "vserver cifs session file show"
Applies to
- Ontap
- CIFS
Answer
- The command "vserver cifs session show" will count both open files and folders
-
cluster1::> vserver cifs session show Node: cluster1-01 Vserver: svm1 Connection Session Open Idle Connection ID ID Workstation Windows User Files Time Count ---------- ------- ---------------- ---------------- --------- ------------ --------------- 1788347365 9841209610734665729 2s 1 10.216.36.118 DOMAIN1\ 8 user1
-
- The command "vserver cifs session file show " will list only open files
-
cluster1::> vserver cifs session file show Node: cluster1-01 Vserver: svm1 Connection: 1788347365 Session: 9841209610734665729 Connection Count: 1 File File Open Hosting Continuously ID Type Mode Volume Share Available ------- --------- ---- --------------- --------------------- ------------ 64 Regular r svm1_root c$ No Path: SMB2_File.pcapng
-
- Is possible to see that there are also open folders as there will be share locks present for them
-
cluster1::> vserver locks show Notice: Using this command can impact system performance. It is recommended that you specify both the vserver and the volume when issuing this command to minimize the scope of the command's operation. To abort the command, press Ctrl-C. Vserver: svm1 Volume Object Path LIF Protocol Lock Type Client -------- ------------------------- ----------- --------- ----------- ---------- svm1_root / svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none /New folder/New folder svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none Sharelock Mode: read-deny_none /New folder svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none Sharelock Mode: read-deny_none / svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_none Sharelock Mode: read-deny_none /SMB2_File.pcapng svm1_cifs_nfs_lif1 cifs share-level 10.216.36.118 Sharelock Mode: read-deny_delete op-lock 10.216.36.118 Oplock Level: batch 9 entries were displayed.
-
Additional Information
additionalInformation_text