Closed pge92 closed 8 months ago
I see, the script needs to be updated to support the cart-based restores introduced in 6.8.1. I will work on it.
Updated, let me know how it works for you: https://github.com/bseltz-cohesity/scripts/tree/master/reports/powershell/restoreReport
great job, it works now 👍
by the way you have to change the output name displayed at the end of the script which does not contain the Cluster name : ===> "Saving output to restoreReport-$now.html and restoreReport-$now.csv" Should be restoreReport-$($cluster.name)-$($now) for both, as the created report names contain CLuster.name
thank you for your help and support
oh sorry, it seems that the TYPE is not correctly set up, as the SQL restore are entered either empty or as 'VMWare' as you can see : _Date,Task,Object,Type,Target,Status,Duration (Min),Restore Point,User 01/25/2024 15:53:28,Recover_MS_SQL_xxxxxxxxxx_2024-01-25_15:53:28_1,xxxxxxx,,yyyyxxxxx,Success,356,01/24/2024 20:30:01,power_api 01/18/2024 11:49:37,Recover_MS_SQL_xxxxxxxxxx_2024-01-18_11:49:37_1,xxxxxxx,VMware,yyyyyyzzzz,Success,730,01/17/2024 20:30:01,powerapi
Ah, I see. Fixed!
tested, it is ok. thx a lot
hi, thank you for your hard work on cohesity api & scripts :)
i've got a problem with the restorereport pwsh script. it does not show most of restores that occurred in January + gives wrong infrormation when saying 0 restore tasks : i think it does not show the last SQL restores (but is able to show oldest SQL restores from December when i put more days )
==> when performing the API call with the same parameters it seems to show the SQL restores as you can see :
and i'm able to find the lines using data-protect/recoveries... weird could you please help ?