Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Datastore search does not return all files

$
0
0

vSphere Server 4.1.0, SDK 4.1.0-254719

 

I'm running a Datastore search using SearchDatastoreSubFolders with a SeachSpec using a VmConfigFileQuery. For a given Datastore containing 9 virtual machines, only 1 .vmx is returned by that search. All 9 machines have all their files in their own folders, and are using the same config file version.

 

The relevant code sections:

 

my $filequery = FileQueryFlags->new(    fileOwner    => 1,    fileSize     => 1,    fileType     => 1,    modification => 1
);
my $vmxquery = VmConfigFileQuery->new(    details => VmConfigFileQueryFlags->new(        configVersion=>1,    )
);
my $searchspec = HostDatastoreBrowserSearchSpec->new(    details      => $filequery,    query        => [ '*.vmx*' ],
);
my $results = $browser->SearchDatastoreSubFolders(    datastorePath => '[datastore]',    searchSpec    => $searchspec
);

 

Any pointers on what I could do different are much appreciated.


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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