Powershell Returns Information Veeam.Backup.Core

PowerShell script exchange

Powershell Returns Information Veeam.Backup.Core

Veeam Logoby davidburke84 » Thu Feb 16, 2017 3:08 pm

I'm looking into pulling Veeam data on jobs and performance via Powershell. When I run this command: Get-VBRJob -Name "Remote Backup Copy" | select LinkedJobs, LinkedJobIDS |fl

I get:

LinkedJobs : {Veeam.Backup.Core.CLinkedJobs, Veeam.Backup.Core.CLinkedJobs, Veeam.Backup.Core.CLinkedJobs}
LinkedJobIds : {c40741d0-89f5-475f-816d-5b7ba0f98730, 85b831e7-70c4-4fd7-b4aa-c08fa77c5b4a,
3d61cb2f-2717-402a-b4e6-fce03503ac34}

I would expect LinkedJobs to return the actual names of the jobs instead of "Veeam.Backup.Core.CLinkedJobs". Can someone else confirm they are seeing similar results.

Running version 9.0.0.1715
davidburke84
Influencer
 
Posts: 12
Liked: never
Joined: Tue Sep 20, 2016 3:06 pm
Full Name: David

Re: Powershell Returns Information Veeam.Backup.Core

Veeam Logoby tsightler » Thu Feb 16, 2017 3:51 pm

If you look at the definition of the LinkedJobs property you will see that it specifically says it will return type Veeam.Backup.Core.CLinkedJobs[], so that's to be expected. The returned CLinkedJobs object includes and Info (which also has the linked job ID) and Order properties as well as information like the creation date of the link. Jobs aren't referenced by name since a job can be renamed, but it's easy to get a job name from a job ID.
tsightler
Veeam Software
 
Posts: 4874
Liked: 1821 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Powershell Returns Information Veeam.Backup.Core

Veeam Logoby davidburke84 » Mon Feb 20, 2017 2:22 pm

I see that now. I guess I was assuming that the name would come in for me.
davidburke84
Influencer
 
Posts: 12
Liked: never
Joined: Tue Sep 20, 2016 3:06 pm
Full Name: David


Return to PowerShell



Who is online

Users browsing this forum: jacobpalm and 1 guest