cancel
Showing results for 
Search instead for 
Did you mean: 

Search-BECatalog - find Files / find VM's from vCenter

BLinz
Level 2

We are using the "Agent for VMware and Hyper-V" for backup complete VM via VMware vCenter-Connection.

I want to search for a specific VM ... but get always no results.

I also try a "Windows Agent File Backup" and got always no results. I backup a folder "C:\_Install" with a lot of .exe Files.

After Backup i try a

Search-BECatalog *.exe

without any results.

If i try

Get-BEAgentServer "QB-Test-01" | Search-BECatalog "C:\_Install" -PathIsDirectory

i got

AgentServer                             FileSystemSelection                      BackupTime                              LastWriteTime
-----------                             -------------------                      ----------                              -------------
QB-Test-01                              C:\_Install\*                            11.01.2016 15:23:16                     11.01.2016 12:51:38
QB-Test-01                              C:\_Install\*                            11.01.2016 15:16:33                     11.01.2016 12:51:38

I have understood the instructions for command so that i can search for any files? Just for all Textfiles or similar?

And i want so to search for backuped VM's .... (AgentServerType VMware)

 

Is this possible? Where is the error? None of the examples do work.

 

Regards,

BLinz

4 REPLIES 4

VJware
Level 6
Employee Accredited Certified

Afaik, this cmdlet works only when the machine has been backed up using the Remote Agent for Windows/Linux and not VMs.

For the physical server example, try this instead -

Get-BEAgentServer "QB-Test-01" | Search-BECatalog C:\_Install\*.exe -Recurse

 

BLinz
Level 2

I am sorry, of course i try

Get-BEAgentServer "QB-Test-01" | Search-BECatalog C:\_Install\*.exe -Recurse

but get also no response, just a "new line

BEMCLI> Get-BEAgentServer "QB-Test-01" | Search-BECatalog "C:\_Install" -PathIsDirectory | fl


AgentServerId       : 1fdf7981-9761-4cd6-a402-42bc115ef77a
AgentServer         : QB-Test-01
FileSystemSelection : C:\_Install\*
BackupTime          : 11.01.2016 15:23:16
Length              : 2141965773
LastAccessTime      : 01.01.0001 00:00:00
CreationTime        : 28.09.2015 14:06:07
LastWriteTime       : 11.01.2016 12:51:38

AgentServerId       : 1fdf7981-9761-4cd6-a402-42bc115ef77a
AgentServer         : QB-Test-01
FileSystemSelection : C:\_Install\*
BackupTime          : 11.01.2016 15:16:33
Length              : 2141965773
LastAccessTime      : 01.01.0001 00:00:00
CreationTime        : 28.09.2015 14:06:07
LastWriteTime       : 11.01.2016 12:51:38



BEMCLI> Get-BEAgentServer "QB-Test-01" | Search-BECatalog "C:\_Install\*"
BEMCLI> Get-BEAgentServer "QB-Test-01" | Search-BECatalog "C:\_Install\*" | fl
BEMCLI> Get-BEAgentServer "QB-Test-01" | Search-BECatalog "C:\_Install\*.exe"
BEMCLI> Get-BEAgentServer "QB-Test-01" | Search-BECatalog "C:\_Install\npp.6.8.8.Installer.exe"
BEMCLI> Get-BEAgentServer "QB-Test-01" | Search-BECatalog "C:\_Install\*.exe" -Recurse
BEMCLI>

"

 

VJware
Level 6
Employee Accredited Certified

Does the cmdlet work without the quotes i.e.

Instead of Get-BEAgentServer "QB-Test-01" | Search-BECatalog C:\_Install\*.exe -Recurse

Try this Get-BEAgentServer QB-Test-01 | Search-BECatalog C:\_Install\*.exe -Recurse

Colin_Weaver
Moderator
Moderator
Employee Accredited Certified

What does Get-BEVmwareAgentServerVM return (either with or without the Search-Catalog option)

 

Note the search catalog option might need the vmdk name as the parameter is this sets you on the correct path