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 » Jul 04, 2018 10:13 am

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 » Jul 04, 2018 2:19 pm

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: 17267
Liked: 1513 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin » Jul 04, 2018 6:31 pm

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 » Jul 05, 2018 7:04 am

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: 17267
Liked: 1513 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin » Jul 05, 2018 10:53 am

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 » Jul 23, 2019 7:43 am

Any news here?

veremin
Product Manager
Posts: 17267
Liked: 1513 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin » Jul 23, 2019 11:28 am

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 » Jul 23, 2019 3:06 pm

2 Environments:
* 200 VMs => nearly a minute
* 1000 VMs => nearly 9 minutes

veremin
Product Manager
Posts: 17267
Liked: 1513 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin » Jul 23, 2019 3:58 pm

And the last question before we investigate it deeper - you're on the latest product version, right? Thanks!

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

Re: issues with Find-VBRHvEntity

Post by GabesVirtualWorld » Jan 17, 2020 6:44 pm

Same issue here.... command takes forever to complete. Running 9.5u4.

veremin
Product Manager
Posts: 17267
Liked: 1513 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin » Jan 20, 2020 2:20 pm

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: 186
Liked: 15 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: issues with Find-VBRHvEntity

Post by GabesVirtualWorld » Jan 20, 2020 2:46 pm

- 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: 17267
Liked: 1513 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: issues with Find-VBRHvEntity

Post by veremin » Jan 20, 2020 5:36 pm

We're aware of the degraded performance of the said cmdlet. The performance enhancements are planned for one of the next product releases. Thanks!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests