PowerShell script exchange
Post Reply
mschwarzer
Influencer
Posts: 11
Liked: never
Joined: Oct 22, 2018 8:31 am
Full Name: Michael Schwarzer
Contact:

Query vCenter for protected vm's

Post by mschwarzer » Aug 07, 2019 10:01 am

Hello @ll,

while customers implementation becommes more and more complex i try to implement a trigger to query the amount of vm's protected by veeam and excluded by manual config.
Implementing some check like:

Code: Select all

Get-VM | Select Name,
    @{N='Protected';E={$_.CustomFields['com.vmware.vdp2.is-protected']}},
    @{N='By';E={$_.CustomFields['com.vmware.vdp2.protected-by']}}
    
i find the most instances updated corectly, but a hugh part of vm's is found, where the costom filed was not updated by the plugin or empty.
My question: is there a supported way of reinitializing this or can you point me in direction to troubleshoot this behavior? Supportcase needed?

With kind regards,
Michael

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

Re: Query vCenter for protected vm's

Post by veremin » Aug 07, 2019 1:01 pm

What plugin is meant here? And by custom fields you refer to Notes attribute? Thanks!

jhoughes
Veeam Software
Posts: 91
Liked: 21 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Austin, TX
Contact:

Re: Query vCenter for protected vm's

Post by jhoughes » Aug 07, 2019 1:33 pm 1 person likes this post

Michael, you appear to be talking about the custom VM attribute set when a successful backup is completed.

This does not rely on any plug-in, it is through the direct integration from Veeam to vCenter, thus there is nothing to re-initialize. The action of setting this attribute should execute on every job run for each VM when a backup succeeds, and typically when it stops I have seen that the setting is no longer enabled in the job(s).

If your jobs are configured to set VM attributes, and the user account being utilized for vCenter connectivity has the appropriate permissions, then I would suggest opening a support case.
Husband, Father, Solutions Architect, Geek Extraordinaire | @AustinVMUG & @ATXPowerShell leader | vExpert | Cisco Champion | Tech Field Day Delegate | VCP 4/5/6 | VCP6-NV | VMware/Cisco UCS/Powershell/VEEAM Enthusiast

mschwarzer
Influencer
Posts: 11
Liked: never
Joined: Oct 22, 2018 8:31 am
Full Name: Michael Schwarzer
Contact:

Re: Query vCenter for protected vm's

Post by mschwarzer » Aug 07, 2019 1:54 pm

Joe, thank you! This was exactly the hint i needed

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests