Skip to main content
NetApp Knowledge Base

Is possible to display cifs shares info and their corresponding volume sizes ?

Views:
95
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • CIFS

Answer

The command cifs share show -fields volume only displays the shared volume names but does not show the size of the volumes. To view the space usage of the corresponding volumes, you need to use the df or  vol show commands separately.
 
  • Display CIFS shares for volumes

ontap913::> cifs share show -fields volume
vserver share-name volume
------- ---------- ---------
svm0    c$         svm0_root
svm0    ipc$       svm0_root
svm0    vol_workgroup
                   vol_workgroup
svm1_ontap913
        ABE        ABE
svm1_ontap913
        audit      audit_svm1
svm1_ontap913
        c$         svm1_ontap913_root

  • Display volume space usage

ontap913::> df -volume ABE
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/ABE/              1048580        568    1048012       0%  /ABE                       svm1_ontap913
/vol/ABE/.snapshot       55188       9128      46060      17%  /ABE/.snapshot             svm1_ontap913
2 entries were displayed.

  • Display detailed volume information

ontap913::> vol show -volume ABE
Vserver   Volume       Aggregate    State      Type       Size  Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
svm1_ontap913
          ABE          aggr1_node1  online     RW       1.05GB     1023MB    0%

Additional Information

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.