Skip to main content
NetApp Knowledge Base

Difference between open files counter in "vserver cifs session show" and amount of actual files listed in "vserver cifs session file show"

Views:
635
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
nas
Last Updated:

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

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.