Was wondering if there are any reports that you're aware of that will provide me with the total file count within a qtree... from the CLI, I'd use 'quota report <path>' but, I'd like to set up a daily report to be sent out to a user requesting this data... so far, I've not been able to find a report that will provide such info.... any idea or custom scripts out there?
On a per-Qtree basis will rely on either quotas (tree) being enabled for the qtree even with no limits, or it needs third party software that might interface using fpolicy in order to intercept file functions within the qtree and count that way. On a volume basis it can be gathered from powershell using something like...
Write-Host $vol.name has $vol.FilesUsed files out of $vol.FilesTotal
That would give you the basics for files. Get-NaQtree doesn't have that information, only Get-NaQuota. Also I think this is used inodes as opposed to used actual files so folders will count too. Might be worth looking at the help for details before you rely on the figure.
Hope this helps a little and sorry its not simple for QTrees.
If you use OnCommand, the "User Quota Capacity" report has "File Used %". Unfortunately, this is not at the qtree level. Also there is a custom, report, "User Quota All" in OnCommand which shows user quotas but has the file path included.