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: 17070
Liked: 1475 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: 17070
Liked: 1475 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: 17070
Liked: 1475 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: 17070
Liked: 1475 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!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests