I tried to use
Code: Select all
-errorAction stop
I tried to ping each host to verify the connection and then use Find-VBRViEntity -server "name_Host", but the result is not list of vm of that host.
Anyone else got any suggestions?
Code: Select all
-errorAction stop
I tried to ping each host to verify the connection and then use Find-VBRViEntity -server "name_Host", but the result is not list of vm of that host.
Code: Select all
Get-VBRServer -Name "dc-esx01", "dc-esx02" | Find-VBRViEntity -VmsAndTemplate
Code: Select all
ConnHostId : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a
ConnHost : Veeam.Backup.Core.Common.CHost
Type : Esx
Reference : host-11
Id : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a_host-11
Name : dc-esx01
Path : dc-esx01
ConnHostId : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a
ConnHost : Veeam.Backup.Core.Common.CHost
Type : Esx
Reference : host-25
Id : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a_host-25
Name : dc-esx02
Path : dc-esx02
Code: Select all
find-VBRViEntity -VmsAndTemplate
Code: Select all
Id Name Path
-- ---- ----
49500DBE-39E7-4A3E-A48B-3F995D1EFF63 VMs and Templates
0b04ef21-3c11-4e9f-ac60-d5503f5db25a vcenter65.ricca-it.local vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_datacenter-2 Datacenter vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-1255 IBM Spectrum Protect Plus vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-210 TSM-TEST vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_group-v128 Cloud vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-4718 eSiem vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-84 iMoc-AD_Cloud vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-92 e-Clean vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-79 zPfsense_Cloud vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-260 ecare-db vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-323 ZDashboard_Cloud vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-66 ZDashboard_Test_Cloud vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-327 zCalio_Cloud vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-6401 vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-211 UPS_Management vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_group-v143 vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-257 G_SRV-WEB-PRO vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-256 G_SRV-WEB vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_group-v133 Datacore vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-22 Dcore01 vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-27 Dcore02 vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_group-v24 Discovered virtual machine vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-974 CentOS7 vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_group-v129 Infrastruttura vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-23 vcenter65 vcenter65
0b04ef21-3c11-4e9f-ac60-d5503f5db25a_vm-6686 FortiManager vcenter65
Code: Select all
$server= Get-VBRServer -type ESXi
$ping= new-Object System.net.networkinformation.ping
$ServerPing=@()
$serverReachable=@()
foreach($item in $server){
$ServerPing+=$ping.send($item.name)
if($ServerPing.status -eq "Success"){$serverReachable += $item}
}
#$ServerPing
#$serverReachable
$vm=@()
foreach($item in $serverReachable){
$vm += Find-VBRviEntity -server $item.name
}
$vm
Code: Select all
ConnHostId : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a
ConnHost : Veeam.Backup.Core.Common.CHost
Type : Esx
Reference : host-11
Id : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a_host-11
Name : dc-esx01
Path : dc-esx01
ConnHostId : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a
ConnHost : Veeam.Backup.Core.Common.CHost
Type : Esx
Reference : host-25
Id : 0b04ef21-3c11-4e9f-ac60-d5503f5db25a_host-25
Name : dc-esx02
Path : dc-esx02
Code: Select all
$server= Get-VBRServer -type ESXi
$ping= new-Object System.net.networkinformation.ping
$ServerPing=@()
$serverReachable=@()
foreach($item in $server){
$ServerPing+=$ping.send($item.name)
if($ServerPing.status -eq "Success"){$serverReachable += $item}
}
#$ServerPing
#$serverReachable
$vm=@()
foreach($item in $serverReachable){
$vm += Find-VBRviEntity -server $item}
$vm
Code: Select all
$vm | select Id, Name, Path
Users browsing this forum: Semrush [Bot] and 19 guests