PowerShell script exchange
Post Reply
Dagr
Service Provider
Posts: 37
Liked: 5 times
Joined: Nov 30, 2020 12:48 pm
Full Name: Daniel Gram Knudsen
Contact:

VCC Replica Job History

Post by Dagr »

Any way to filter the VCC server's History of job sessions in PowerShell?
In the GUI one can go to
History>Cloud Connect > Replica
But here it is only posible to search on jobname and not e.g. TenantName. I am looking for a more filteret aproach. Is this posible?
Mildur
Product Manager
Posts: 8734
Liked: 2293 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: VCC Replica Job History

Post by Mildur »

Hi Daniel

I can't find a direct powershell command.
Can you tell me a little bit more about your goal?
Is this for monitoring purposes?

Thanks
Fabian
Product Management Analyst @ Veeam Software
david.domask
Veeam Software
Posts: 1225
Liked: 321 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: VCC Replica Job History

Post by david.domask » 1 person likes this post

There aren't any supported Powershell cmdlets at this time for checking Provider-side Session results.

As an unsupported workaround, you can use the following. Note that this is has the potential to change in future updates and Support does not provide assistance with unsupported methods.

Code: Select all

 $sess = [Veeam.backup.core.CCloudSession]::GetAll() |Where-Object {$_.CloudType -eq 'Replica'}
This will return Replica Sessions as CCloudSession objects which have most of the same properties as a CBackupSession Object.

You can check other Types with $sess.CloudType.GetType().GetEnumNames() (just run this on a saved session and you'll get all the ENums)

Code: Select all

Restore Type       Job Name             State      Start Time             End Time               Description
------------       --------             -----      ----------             --------               -----------
Cloud              vcc-replica          Stopped    7/7/2022 11:04:10 AM   7/7/2022 11:10:28 AM
David Domask | Product Management: Principal Analyst
Dagr
Service Provider
Posts: 37
Liked: 5 times
Joined: Nov 30, 2020 12:48 pm
Full Name: Daniel Gram Knudsen
Contact:

Re: VCC Replica Job History

Post by Dagr »

Thanks. Will look into it.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests