Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 20202

Excluding a folder from phantom snapshots query

$
0
0

Hey everyone,

 

Our NetApp SAN has the ability / option to show snapshots on the volume from within the volume.  For instance, we have an NFS share called Vol001, and it has a snapshot from 30 days ago.

 

When browsing the volume, there is a .snapshot folder where I can actually go and view the files contained within the snapshot.  My SolarWinds Virtualisation Manager is picking up VMware shapshot files from within these folders and telling me some VM's may have phantom snapshot files.  I understand it's doing what it's meant to, but I'd like to be able to filter out snapshot files located within the .snapshot folder if possible.

 

The original query is: sum(for $datastoreFilename in /datastore/file/name return if (matches($datastoreFilename, '-\d{6}\.vmdk')) then (if (/datastore/virtualMachine/snapshotSummary/file[name=$datastoreFilename]/name) then 0 else 1) else 0)

 

I'm not entirely sure on how to modify this to exclude files within .snapshot.

 

Any help would be greatly appreciated!

 

Thanks,

Dave


Viewing all articles
Browse latest Browse all 20202

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>