PowerShell script exchange
Post Reply
maverick964_uk
Expert
Posts: 102
Liked: 3 times
Joined: May 09, 2013 8:57 am
Full Name: Mike Lavery
Contact:

rescanning virtual machines from powershell

Post by maverick964_uk » Jul 15, 2013 10:28 am

We have veeam 6.5.
Does anyone know the powershell command to perform storage rediscovery?

Normally in the GUI, you go to "virtual machines", right click "vmware vsphere" and click rescan.
I want to be able to do this from the command line....

thanks

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

Re: rescanning virtual machines from powershell

Post by veremin » Jul 15, 2013 2:11 pm

Hi, Mike. It seems that there is no such a cmdlet, at least, not that I’m aware of.

Also, could you elaborate on what your specific goal is? Are you’re trying to perform something with newly-added datastore that stays invisible to PS snap-in until the rescan takes place?

Thanks.

maverick964_uk
Expert
Posts: 102
Liked: 3 times
Joined: May 09, 2013 8:57 am
Full Name: Mike Lavery
Contact:

Re: rescanning virtual machines from powershell

Post by maverick964_uk » Jul 16, 2013 3:13 pm

thats interesting....

we have had some issues with the infrastructure therefore we wanted to run a rescan just before backup starts.
Would be a cmdlet to add....

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

Re: rescanning virtual machines from powershell

Post by veremin » Jul 16, 2013 3:40 pm

The remark regarding newly-added datastore was nothing but an assumption, since I was trying to understand your particular goal, etc.

From my perspective , even without rescanning there are good chances that backup/replication won’t fail, unless there have been dramatic infrastructure changes that resulted in MorefID changes or absence of certain VMs, etc.

Anyway, thanks for the heads-up; much appreciated.

maverick964_uk
Expert
Posts: 102
Liked: 3 times
Joined: May 09, 2013 8:57 am
Full Name: Mike Lavery
Contact:

Re: rescanning virtual machines from powershell

Post by maverick964_uk » Jul 18, 2013 8:38 am

many thanks and I appreciate the reply.

It would be good to have a cmdlet to rescan the storage....
Is this something we can request as an enhancement?

Vitaliy S.
Product Manager
Posts: 22747
Liked: 1518 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: rescanning virtual machines from powershell

Post by Vitaliy S. » Jul 18, 2013 1:09 pm

Yes, you can. These forums are always monitored for potential features for the next versions.

maverick964_uk
Expert
Posts: 102
Liked: 3 times
Joined: May 09, 2013 8:57 am
Full Name: Mike Lavery
Contact:

Re: rescanning virtual machines from powershell

Post by maverick964_uk » Jul 19, 2013 7:51 am

thanks. Would be good to get this feature added...

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests