01-11-2016 06:41 AM
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
01-12-2016 12:03 AM
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
01-12-2016 12:13 AM
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>
"
01-12-2016 12:19 AM
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
01-12-2016 01:44 AM
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