Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anyone let me know how to get file count on a single CIFS share
Solved! See The Solution
1 ACCEPTED SOLUTION
tahmad has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
8 REPLIES 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can check if netapp xcp file analytics provides the feature you need. Its free!!!
References
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like XCP file analytics works with Ontap 9.8.
I am still at Ontap 9.4P3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can inode utilization -> iused -> can be taken as no.of files under the shares of that volume ?
iused ifree %iused
198913653 47741537 80%
tahmad has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 👍
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FSA looks awesome! Thanks for the info here.
