Closed gerardiro closed 2 years ago
That script is deprecated (I've just removed it). For what it's worth, it requires the PowerShell modules for Excel to be installed. Check out these scripts: https://github.com/bseltz-cohesity/scripts/tree/master/powershell/storageChart https://github.com/bseltz-cohesity/scripts/tree/master/reports/powershell/clusterStorageStats https://github.com/bseltz-cohesity/scripts/tree/master/reports/powershell/storageGrowth https://github.com/bseltz-cohesity/scripts/tree/master/reports/powershell/storageReport
.\getStorageGrowth.ps1 -vip $CohClusterName -username $yourusername -domain local -days 31 new-object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:17 char:7
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:18 char:1
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:19 char:1
The property 'Name' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:20 char:1
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:21 char:1
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:25 char:1
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:26 char:1
Connected! You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:49 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:50 char:5
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:55 char:1
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:56 char:1
The property 'chartType' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:57 char:1
You cannot call a method on a null-valued expression. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:58 char:1
The property 'HasTitle' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:59 char:1
The property 'Text' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:60 char:1
The property 'Top' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:61 char:1
The property 'Left' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:62 char:1
The property 'Width' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:63 char:1
The property 'visible' cannot be found on this object. Verify that the property exists and can be set. At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:64 char:1
Exception calling "ReleaseComObject" with "1" argument(s): "Object reference not set to an instance of an object." At D:\cohesity\Automation\getStorageGrowth\getStorageGrowth.ps1:65 char:1