PowerShell script exchange
Post Reply
TobiasS
Novice
Posts: 3
Liked: never
Joined: Jan 16, 2024 9:48 am
Full Name: Tobias Speiser
Contact:

Feature Request: Recieving more information about running job

Post by TobiasS »

Hello everyone,

We have had some problems in the past with our tape jobs and a running AV on the server.
In order to better monitor the tape jobs, we tried to use Powershell to get some information from our running tape jobs.

Unfortunately, after a Veeam case - #07491582 - we were not able to get all the information we wanted.

Some other information that can be viewed via the Veeam B&R console would also be nice to get via Powershell, such as:
- Tape Write Speed Duration/Processing Rate
- Current speed
- TB already written
- Total TB still to be written to the tape

Please also correct me if the following information can be read in any way via PowerShell.
david.domask
Veeam Software
Posts: 2123
Liked: 513 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Feature Request: Recieving more information about running job

Post by david.domask »

Hi Tobias,

Much of this is under the Progress Property on CBackupTaskSession objects returned by Get-VBRTaskSession. A simple way of getting at this:

$job = Get-VBRTapeJob -Name 'TP-FK-GFS'
$jSess = Get-VBRTapeBackupSession -Job $job | Sort -Property CreationTime -Descending #Most recent session is 1st in array
$tsess = Get-VBRTaskSession -Session $jSess[0] #Check first item from array (most recent session)

This will give you more direct details on the given tasks within a tape job.
David Domask | Product Management: Principal Analyst
TobiasS
Novice
Posts: 3
Liked: never
Joined: Jan 16, 2024 9:48 am
Full Name: Tobias Speiser
Contact:

Re: Feature Request: Recieving more information about running job

Post by TobiasS »

Hello David,

thank you. I was able to find the following informations:
- Total Backup Job size
- Progress in %
- Operation

With the information above, I can calculate the 'written' size of the backup and also determine what still needs to be written.

I was not able to find any information about the write speed and the duration of the write process to tape. I will look into it further.

Thank you for your knowledge regarding the above information.
david.domask
Veeam Software
Posts: 2123
Liked: 513 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Feature Request: Recieving more information about running job

Post by david.domask »

You're very welcome Tobias, I'm glad I could help.

At some point I seem to recall this should be under there as well, but you may need to play with the Logger() unsupported method to get this.

This thread has an example on how to fetch this data and I think with tape you can pull out at least average speed and duration from the logger entries there.
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: GaborCs and 11 guests