I need to get a list of all shares and folder/subfolders along NTFS permissions (user and permission) in a netapp with millions of folders.
I know you can use this command and it will return permissions for one folder you specify
vserver security file-directory show -path /marketing -expand-mask true
But I need to do a report of a netapp that has 1 million of folders/subfolders so traversing folders and invoking this command folder by folder will take so many hours.
By now i have been doing this with standard windows APIs to list folders and subfolders and get-acl permission per folder but as i said it is too slow.
Is there any file where this info is stored or a way to query security file-directory to report all subfolders ? or other way like in windows you can use ntfs walker/journal or similar to query ntfs metada and get all file names/dir in the filesystem more efficient and quickly.