Can anyone let me know how to get file count on a single CIFS share
See The Solution
Not entirely. Inodes used includes:
If you want actual file count, you can use XCP, which is offbox and doesn't require ONTAP 9.8.
View solution in original post
You can check if netapp xcp file analytics provides the feature you need. Its free!!!
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
Looks like XCP file analytics works with Ontap 9.8.I am still at Ontap 9.4P3.
Can inode utilization -> iused -> can be taken as no.of files under the shares of that volume ? iused ifree %iused 198913653 47741537 80%
Also look for page 177-179 of TR-4571 for good xcp scan examples.
Good luck 👍
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.
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.
Live Chat, Watch Parties, and More!
Engage digitally throughout the sales process, from product discovery to conﬁguration, and handle all your post-purchase needs.