PowerShell script exchange
Post Reply
Sindhuja
Influencer
Posts: 21
Liked: never
Joined: Jan 22, 2018 11:01 pm
Full Name: Sindhuja Balasubramanian
Contact:

Agent Details for an Endpoint Backup

Post by Sindhuja »

Hello All,

Can we get agent details using Powershell command?
I have tried the following commands ...
  • VBREPJob - Returns all the endpoint backup jobs
  • Get-VBREPSession - Returns all the endpoint backup sessions
Questions:
  • I would like to know the agent (which is getting backed up) details like host name or ip address
  • For a backup job, the Get-VBRTaskSession command gives an "ObjectId" associated with that task session. Is this kind of information available for an endpoint backup session as well? If yes, how can I get that information?
Thanks in advance!
Regards,
Sindhuja

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

Re: Agent Details for an Endpoint Backup

Post by veremin »

Do you mind answering the following questions:

* What particular details you're looking for?
* Are you talking about agent management functionality brought by Update 3?

Thanks.

Sindhuja
Influencer
Posts: 21
Liked: never
Joined: Jan 22, 2018 11:01 pm
Full Name: Sindhuja Balasubramanian
Contact:

Re: Agent Details for an Endpoint Backup

Post by Sindhuja »

Thank you for your response.
I was looking for the agent details like Host Name or IP address.
It would be useful to have the information, as we can pull out a report on "what Host have been backed up" and "how many backups/ backup copies have been made, given a host.".

tapani.kuusniemi
Lurker
Posts: 1
Liked: never
Joined: Jan 30, 2018 12:09 pm
Full Name: Tapani Kuusniemi
Contact:

Re: Agent Details for an Endpoint Backup

Post by tapani.kuusniemi »

Hi,

One thing that is missing from the agent management functionality brought by Update 3, is the ability to get the details of the agent jobs managed by VBR via PowerShell. In a case were you would like to monitor the jobs via PowerShell is not possible at the moment due to the lack of support by the command Get-VBREPJob.

When is this going to fixed? In the next release, or sooner?

Best regards,

Tapani Kuusniemi

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

Re: Agent Details for an Endpoint Backup

Post by veremin »

Unfortunately we сannot provide any ETA at the moment, but this feature has a high priority in our books. Thanks.

bulletlynn
Service Provider
Posts: 36
Liked: 5 times
Joined: Jul 22, 2014 3:25 pm
Full Name: Nick Lynn
Contact:

Re: Agent Details for an Endpoint Backup

Post by bulletlynn »

This is a huge issue as we also monitor Agent backups using powershell Get-VBREPJob. Has anyone found a work around?

Sindhuja
Influencer
Posts: 21
Liked: never
Joined: Jan 22, 2018 11:01 pm
Full Name: Sindhuja Balasubramanian
Contact:

Re: Agent Details for an Endpoint Backup

Post by Sindhuja »

I have found few workarounds to get the Agent backup details...
  • To get the client/host details that the agent is backing up

    Code: Select all

    $CBackupsEP = [Veeam.Backup.Core.CBackupJob]::GetByType("EndpointBackup")
    $CBackupsEP | Get-VBRJobObject
    
  • To get the session and task session details for an endpoint backup

    Code: Select all

    $epbkupSession = [Veeam.Backup.Core.CBackupSession]::GetByTypeAndTimeInterval(([Veeam.Backup.Model.EDbJobType]::EndpointBackup), $fromdate, $todate) 
    Foreach ($epbkup in $epbkupSession) {
        $eptaskSession = Get-VBRTaskSession -Session $epbkup
        Write-Host "Endpoint BackupSession details :"
        Write-Host $epbkup.GetDetails()
        Write-Host "Endpoint Task Session details :"
        Write-Host "ObjectName: "  $eptaskSession.Info.ObjectName
        Write-Host "ObjectId: "  $eptaskSession.Info.ObjectId
        Write-Host "Details: " $eptaskSession.GetDetails()
    }
    
Can someone from Veeam confirm whether it is safe to use these APIs till we get an update?

Thanks,
Sindhuja

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

Re: Agent Details for an Endpoint Backup

Post by veremin »

Correct, you can stick to the given workaround, till next update is released. Thanks.

Sindhuja
Influencer
Posts: 21
Liked: never
Joined: Jan 22, 2018 11:01 pm
Full Name: Sindhuja Balasubramanian
Contact:

Re: Agent Details for an Endpoint Backup

Post by Sindhuja »

Cool! Thanks Eremin!

Regards,
Sindhuja

aschillling
Novice
Posts: 9
Liked: never
Joined: Sep 15, 2017 7:52 pm
Full Name: Andrew W Schilling
Contact:

Re: Agent Details for an Endpoint Backup

Post by aschillling »

For clarity - there is a known issue with cmdlets such as Get-VBREPJob where it does not correctly return any data and the workaround for the time being is use something like below:

Code: Select all

[Veeam.Backup.Core.CBackupJob]::GetAll() | Where-Object {$_.JobType -eq "EpAgentBackup"}
[Veeam.Backup.Core.CBackupJob]::GetByType("EndpointBackup")

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

Re: Agent Details for an Endpoint Backup

Post by veremin »

Correct.

Finalwaltz
Lurker
Posts: 1
Liked: never
Joined: Jul 16, 2018 4:14 pm
Full Name: Jason Nguyen
Contact:

Re: Agent Details for an Endpoint Backup

Post by Finalwaltz »

Any update on this?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests