ONTAP Discussions

File count on CIFS share

sairajeev

Can anyone let me know how to get file count on a single CIFS share

1 ACCEPTED SOLUTION

parisi

Not entirely. Inodes used includes:

 

- files

- directories

- symlinks

 

If you want actual file count, you can use XCP, which is offbox and doesn't require ONTAP 9.8.

 

https://whyistheinternetbroken.wordpress.com/tag/xcp/

View solution in original post

7 REPLIES 7

jcolonfzenpr

You can check if netapp xcp file analytics provides the feature you need. Its free!!!

 

References

https://whyistheinternetbroken.wordpress.com/2018/07/02/how-to-find-average-file-size-and-largest-file-size-using-xcp/

 

https://xcp.netapp.com/

 

NetApp XCP file analytics is host-based software to scan the file shares, collect and analyzes the data and provide insights into the file system. XCP file analytics works for both NetApp and non-NetApp systems and runs on Linux or Windows host

Jonathan Colón | Blog | Linkedin

sairajeev

Looks like XCP file analytics works with Ontap 9.8.
I am still at Ontap 9.4P3.

sairajeev

Can inode utilization -> iused -> can be taken as no.of files under the shares of that volume ?


 iused                   ifree         %iused 
 198913653     47741537        80% 

parisi

Not entirely. Inodes used includes:

 

- files

- directories

- symlinks

 

If you want actual file count, you can use XCP, which is offbox and doesn't require ONTAP 9.8.

 

https://whyistheinternetbroken.wordpress.com/tag/xcp/

View solution in original post

jcolonfzenpr

Also look for page 177-179 of TR-4571 for good xcp scan examples.

 

https://www.netapp.com/us/media/tr-4571.pdf

 

Good luck 👍 

Jonathan Colón | Blog | Linkedin

tahmad

You can run this command:

 

::> volume show -vserver Vserver_Name -volume Volume_Name -fields files-used

 

It will list the number of files including snapshots. 

parisi

That works if the share is at the volume level.

 

But you can set shares at qtree or folder level.

 

XCP is one way to get the count. Or, in 9.8, you can enable Filesystem Analytics.

 

https://blog.netapp.com/ontap-file-system-analytics

https://tv.netapp.com/detail/video/6208348752001/ontap-file-system-analytics

https://www.netapp.com/media/20707-tr-4867.pdf

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public