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.