-
- Service Provider
- Posts: 7
- Liked: never
- Joined: Mar 20, 2024 9:54 am
- Full Name: Macé Steve
- Contact:
Feature Request - Recalculate Option Scriptable
Hello,
For some vm backup inventories or consommation issues, we use script that extract job configuration/consumption but we don't get real size of the backups job because you need to recalculate the job first with your option on the job at the virtual machine tab.
So our graph or analysis are false if we don't do it, so i ask if it's possible to get a script that recalculate all jobs ? Automaticaly each month or manually. Because it's very long to go each job when you have a lot of job and
Regards
For some vm backup inventories or consommation issues, we use script that extract job configuration/consumption but we don't get real size of the backups job because you need to recalculate the job first with your option on the job at the virtual machine tab.
So our graph or analysis are false if we don't do it, so i ask if it's possible to get a script that recalculate all jobs ? Automaticaly each month or manually. Because it's very long to go each job when you have a lot of job and
Regards
-
- Veeam Software
- Posts: 2590
- Liked: 606 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Feature Request - Recalculate Option Scriptable
Hi @smace
I'm not sure I'm following fully; how are you trying to calculate this currently?
You should be able to use Get-VBRJobObjects and pass a CJob object (from Get-VBRJob) to get the current state of all added VMs. For a simple example, I can do this:
There is slight annoyance in that the ApproxSizeString property has non-integer characters so to sum up the entire job, we need to use a deeper property. I added another VM to the same job so the result looks like this:
And we can sum this with Measure-Object in Powershell by checking the Info property of the CObjectInJob object returned by Get-VBRJobObject.
There's no need to manually populate the job, so maybe this will work for you? Or maybe I'm misunderstanding, and if so, can you maybe show your code and the output that is not correct until you click the Populate button?
I'm not sure I'm following fully; how are you trying to calculate this currently?
You should be able to use Get-VBRJobObjects and pass a CJob object (from Get-VBRJob) to get the current state of all added VMs. For a simple example, I can do this:
Code: Select all
$job = Get-VBRJob -name 'ps-summation-test'
Get-VBRJobObject -Job $job
Name Type ApproxSize Location
---- ---- ---------- --------
ddom-debian-backmeup Include 16 GB somevc.place.local...
Code: Select all
Get-VBRJobObject -Job $job
Name Type ApproxSize Location
---- ---- ---------- --------
ddom-debian-backmeup Include 16 GB somevc.place.local...
ddom-malware Include 15.8 GB somevc.place.local...
Code: Select all
$objs = Get-VBRJobObject -Job $job
$objs.Info.ApproxSize | Measure-Object -Sum
Count : 2
Average :
Sum : 34125905920 <=== Total size in bytes
Maximum :
Minimum :
Property :
David Domask | Product Management: Principal Analyst
-
- Service Provider
- Posts: 7
- Liked: never
- Joined: Mar 20, 2024 9:54 am
- Full Name: Macé Steve
- Contact:
Re: Feature Request - Recalculate Option Scriptable
Hello,
I test what you reply me, i will show my problem :
I opened the job config with virtual machines view :
https://ibb.co/YBtGfF8
https://ibb.co/G5rN0NK
it's before the recalculate
We see the VM name TFRSWPWEB124 at 55.7Go in powershell too.
But look after the calculate, it's grow at 56.7Go , https://ibb.co/CvHZZLk, so the approx.size is powershell command is wrong. So the backup size job is changed. I need to know of the press recalcule button in powershell command if it's possible.
Thanks
I test what you reply me, i will show my problem :
I opened the job config with virtual machines view :
https://ibb.co/YBtGfF8
https://ibb.co/G5rN0NK
it's before the recalculate
We see the VM name TFRSWPWEB124 at 55.7Go in powershell too.
But look after the calculate, it's grow at 56.7Go , https://ibb.co/CvHZZLk, so the approx.size is powershell command is wrong. So the backup size job is changed. I need to know of the press recalcule button in powershell command if it's possible.
Thanks
-
- Veeam Software
- Posts: 2590
- Liked: 606 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Feature Request - Recalculate Option Scriptable
Hi smace,
Thank you for the screenshots, however, may I ask, did you fetch the job and run Get-VBRJobObjects again after the VM space usage increased?
If I remember correctly, the values shown there aren't updated in real time (it would be very chatty traffic to and from the hypervisor environment), but it should update every job run or during the next Broker service update, which is periodic (and fairly frequent) as the Veeam Server is running.
Thank you for the screenshots, however, may I ask, did you fetch the job and run Get-VBRJobObjects again after the VM space usage increased?
If I remember correctly, the values shown there aren't updated in real time (it would be very chatty traffic to and from the hypervisor environment), but it should update every job run or during the next Broker service update, which is periodic (and fairly frequent) as the Veeam Server is running.
David Domask | Product Management: Principal Analyst
-
- Service Provider
- Posts: 7
- Liked: never
- Joined: Mar 20, 2024 9:54 am
- Full Name: Macé Steve
- Contact:
Re: Feature Request - Recalculate Option Scriptable
Hello,
I try it one more time, same context. I have to press recalculate button to get the real size. After "finish" button, i retry the command, and the size are now correct.
But we cant pass these "Recalculate" Button, for information my master has been updated last week so the VBR reboot and his services too. Event the Broker Server is reload, it's change nothing.
regards
I try it one more time, same context. I have to press recalculate button to get the real size. After "finish" button, i retry the command, and the size are now correct.
But we cant pass these "Recalculate" Button, for information my master has been updated last week so the VBR reboot and his services too. Event the Broker Server is reload, it's change nothing.
regards
Who is online
Users browsing this forum: Amazon [Bot] and 10 guests