Solved

How to export job protocol

  • 30 November 2020
  • 8 comments
  • 163 views

Userlevel 7
Badge +13

I spend some time in searching for a way to export job/task log as it is shown in VBR GUI:

I found ways to export all logs in detail, but not these are displayed in GUI. Helpful would be PowerShell, API, Rest, or anything else that works.

Not to be misunderstood: I do not need the job/task status, I need the logs. 

Thanks!

icon

Best answer by JMeixner 30 November 2020, 12:57

View original

8 comments

Userlevel 7
Badge +17

Hi,

try this. It is a fragment only, but I think this should give the informatoin you want.

$sessions = get-vbrbackupsession

$backupInfo = get-vbrtasksession -session $sessions[0] | where-object { $sessions[0].JobType -eq 'Backup'}

$backupInfo[0].logger.GetLog().updatedrecords

Userlevel 7
Badge +13

Hi,

try this. It is a fragment only, but I think this should give the informatoin you want.

$sessions = get-vbrbackupsession

$backupInfo = get-vbrtasksession -session $sessions[0] | where-object { $sessions[0].JobType -eq 'Backup'}

$backupInfo[0].logger.GetLog().updatedrecords

Thanks, @JMeixner! I will give it a try and let you know if it works!

Userlevel 7
Badge +13

@JMeixner  you made my day! That helped me a lot!! Thank you!

Userlevel 7
Badge +13

@JMeixner  you made my day! That helped me a lot!! Thank you!

PS:

 

Userlevel 7
Badge +17

Thanks @vNote42 ,

yes, you have to sort the output and/or select the parts you need.

Sorry, I didn’t do this in my code fragment :grin:

Userlevel 7
Badge +17

Mhh, there is some information missing in the powershell output - the amount of data read from a hard disk and with which speed it was read…

Powershell output:

Hard disk 1 (750 GB)

Output in VEEAM console:

Hard disk 1 (750 GB) 2,4 GB read at 186 MB/s [cbt]

So there is some work to do to get all information….

Userlevel 7
Badge +13

Mhh, there is some information missing in the powershell output - the amount of data read from a hard disk and with which speed it was read…

Powershell output:

Hard disk 1 (750 GB)

Output in VEEAM console:

Hard disk 1 (750 GB) 2,4 GB read at 186 MB/s [cbt]

So there is some work to do to get all information….

I will investigate this even more and will share my outcomes.

Userlevel 7
Badge +13

Mhh, there is some information missing in the powershell output - the amount of data read from a hard disk and with which speed it was read…

Powershell output:

Hard disk 1 (750 GB)

Output in VEEAM console:

Hard disk 1 (750 GB) 2,4 GB read at 186 MB/s [cbt]

So there is some work to do to get all information….

@JMeixner The difference is because you show the log of the whole job, not a VM. I just added a post that shows both ways.

 

Comment