Commvault / CVPowershellSDK

Developer SDK - Powershell
12 stars 12 forks source link

Unable to use Get-CVJob specifying Backup Set Name #8

Open CraigTolley opened 4 years ago

CraigTolley commented 4 years ago

I am trying to get details of backup jobs for each subclient. I have a client like the below example:

Client Name: Server1 Agent: SQL Server Instance Name: Server1\DBInstance1 Sub Client Name: default

Instance Name: Server1\DBInstance2 Sub Client Name: default

I do not seem to be able to use Get-CVJob to differentiate between the instances within the client. Not sure if we just need an additional parameter?

Let me know if this is not clear.

CraigTolley commented 4 years ago

Once again, I should delve deeper before posting the question!

I can get the information. Instead of usingGet-CVJob -ClientName x -SubclientName y, I can filter post query:

Get-CvJob -ClientName x | Where-Object {$_.subclient.instancename -eq "InstanceName" }

Not ideal, as it pulls down a lot more data than is needed, but a usable workaround.