PowerShell script exchange
Post Reply
frankU32
Enthusiast
Posts: 36
Liked: 2 times
Joined: May 02, 2018 11:56 am
Full Name: Frank Tighe
Contact:

issues with Find-VBRHvEntity

Post by frankU32 »

If I use the command:

Find-VBRHvEntity -name [vmname]

It essentially locks up my Veeam instance. am I doing something wrong here or is this just a really inefficient way to search for VM's?

Frank
frankU32
Enthusiast
Posts: 36
Liked: 2 times
Joined: May 02, 2018 11:56 am
Full Name: Frank Tighe
Contact:

Re: issues with Find-VBRHvEntity

Post by frankU32 »

OK quick update. It does work but it takes a very long time to give a result. 10+ mins. I feel like that isn't right
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin »

Correct, it's rather slow cmdlet that take significant time to collect the data. What you can do, though, is to store the results in hash table and work only with it afterwards; should make the overall script faster. Thanks.
frankU32
Enthusiast
Posts: 36
Liked: 2 times
Joined: May 02, 2018 11:56 am
Full Name: Frank Tighe
Contact:

Re: issues with Find-VBRHvEntity

Post by frankU32 »

Looking at the SQL when you run this command it seems to do a select * from a whole bunch of tables. Is there any chance you guys could pop this commandlet on your list of things that need improvement?
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin »

It's been there for a while waiting for spare development and QA resources. Thanks.
theq77
Novice
Posts: 7
Liked: 1 time
Joined: Apr 02, 2019 3:06 pm
Full Name: theq
Contact:

Re: issues with Find-VBRHvEntity

Post by theq77 »

Any news here?
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin »

How big your environment is? How long it takes for the said cmdlet to collect information? Recently we've tried to confirm this behaviour and the cmdet has run rather fast. Thanks!
theq77
Novice
Posts: 7
Liked: 1 time
Joined: Apr 02, 2019 3:06 pm
Full Name: theq
Contact:

Re: issues with Find-VBRHvEntity

Post by theq77 »

2 Environments:
* 200 VMs => nearly a minute
* 1000 VMs => nearly 9 minutes
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin »

And the last question before we investigate it deeper - you're on the latest product version, right? Thanks!
GabesVirtualWorld
Expert
Posts: 244
Liked: 38 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: issues with Find-VBRHvEntity

Post by GabesVirtualWorld »

Same issue here.... command takes forever to complete. Running 9.5u4.
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin »

9.5 U4 or U4a/U4b? Also, can you provide more details regarding your infrastructure (number of VMs) and time it takes to execute the cmdlet? Thanks!
GabesVirtualWorld
Expert
Posts: 244
Liked: 38 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: issues with Find-VBRHvEntity

Post by GabesVirtualWorld »

- 9.5.4.2866 but it has been this since a few updates.
- We have a support call running at the moment, but also had one for 6 months ago but couldn't really get to the bottom of it and it seemed good enough to work with. Now the delay has increased to insane numbers.
- After 1 hour I broke off the scripts.

This little piece takes about an hour and then I just cancel it:

$EntSourceObj = @()
$EntSourceObj = Find-VBRHvEntity -Server $SourceSCVMM -Name "vmname"

- We have 1 SCVMM server with about 100 hosts, 2000 VMs.
- We have 7 vCenters with about 300 hosts, 5000VMs. All vCenter queries are really quick.
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin »

We're aware of the degraded performance of the said cmdlet. The performance enhancements are planned for one of the next product releases. Thanks!
wiede78
Lurker
Posts: 2
Liked: never
Joined: Sep 03, 2021 10:42 am
Contact:

Re: issues with Find-VBRHvEntity

Post by wiede78 »

it still has bad performance as I see...or is the next product release not out? :roll:
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: issues with Find-VBRHvEntity

Post by oleg.feoktistov »

Hi,

Has anything changed with v11a? Any precise metrics to share?
Also, could you please share case ids regarding this issue if you have had any in the past?

Thanks,
Oleg
GabesVirtualWorld
Expert
Posts: 244
Liked: 38 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: issues with Find-VBRHvEntity

Post by GabesVirtualWorld »

For me it has changed:

Version: 11.0.1.1261
$EntSourceObj = @()
Measure-Command{
$EntSourceObj = Find-VBRHvEntity -Server $SourceSCVMM -Name "vmname"
}

Minutes : 2
Seconds : 40
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests