StoredSize Attribute Empty in Veeam 7

PowerShell script exchange

StoredSize Attribute Empty in Veeam 7

Veeam Logoby stsc_srzc » Tue Nov 26, 2013 9:54 am

Hi Everyone!

We have a script that queries data regarding completed backup sessions. A simplyfied example of the script follows. Starting with Veeam 7 we noticed that the "StoredSized" attribute for each session is always empty. On Veeam 6 it was filled with a number. Does someone has a hint for us on this issue? Can this value be found in another attribute now or is it deprecated? How can we get the size that was written to a data pool?

Code: Select all
Add-PSSnapin -Name VeeamPSSnapIn

$sessions = Get-VBRBackupSession
foreach ($session in $sessions) {
    $TaskSessions = $session.GetTaskSessions()
    foreach($TaskSession in $TaskSessions) {
        $TaskInfo = $TaskSession.Info
        $Progress = $TaskInfo.Progress
        write-host "TotalSize" $Progress.TotalSize
        write-host "ProcessedSize" $Progress.ProcessedSize
        write-host "StoredSize" $Progress.StoredSize
        write-host "ReadSize" $Progress.ReadSize
    }
}


Best regarads
Stefan
stsc_srzc
Influencer
 
Posts: 10
Liked: 1 time
Joined: Thu Feb 21, 2013 11:53 am

Re: StoredSize Attribute Empty in Veeam 7

Veeam Logoby v.Eremin » Tue Nov 26, 2013 10:24 am

It seems that .StoredSize attribute isn't present any longer. You can try to use .TotalUsedSize, instead, and see whether it gives you what you're after. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: StoredSize Attribute Empty in Veeam 7

Veeam Logoby stsc_srzc » Wed Nov 27, 2013 10:05 am

Hi Vladimir,

thanks for your post. You are right ".StoredSize" is no longer available in Veeam 7. I tried ".TotalUsedSize" instead but it always returns "0". I don't know what this value is for. Finally I ended up with ".TransferedSize" which seems to be new in Veeam 7 as it is not available in Veeam 6.

My tests with ".TransferedSize" showed that it contains values similar to ".StoredSize". As long as no one comes up with a "Do not use this because ..." I'll stick with it :D

Best Regrads
Stefan
stsc_srzc
Influencer
 
Posts: 10
Liked: 1 time
Joined: Thu Feb 21, 2013 11:53 am

Re: StoredSize Attribute Empty in Veeam 7

Veeam Logoby v.Eremin » Wed Nov 27, 2013 1:07 pm

Yep, I was going to propose .TransferedSize parameter if .TotalUsedSize didn't meet your expectations.

Anyway, as long as, the chosen parameter suites your needs, you can use it without any issues.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 7 guests