I too had difficulty figuring out the HistoricalFilter parameter, but after looking through the PowerShell SDK Cookbook and web documentation provided with the SDK I was able to figure it out.
Running the "[DellStorage.Api.Enums.FilterTimeEnum]::GetList()" command below will list the available values for the FilterTimeEnum -
Value Description Name ----- ----------- ---- 0 Other Other 1 LastDay LastDay 2 LastWeek LastWeek 3 LastMonth LastMonth
I then followed the examples in the Powershell SDK Cookbook to set the following-
tmgknsmi
1 Message
0
November 6th, 2017 17:00
I too had difficulty figuring out the HistoricalFilter parameter, but after looking through the PowerShell SDK Cookbook and web documentation provided with the SDK I was able to figure it out.
Running the "[DellStorage.Api.Enums.FilterTimeEnum]::GetList()" command below will list the available values for the FilterTimeEnum -
Value Description Name
----- ----------- ----
0 Other Other
1 LastDay LastDay
2 LastWeek LastWeek
3 LastMonth LastMonth
I then followed the examples in the Powershell SDK Cookbook to set the following-
$filter = [DellStorage.Api.Enums.FilterTimeEnum] "LastDay"
And then used that as part of my command -
Get-DellScControllerHistoricalIoUsage -HistoricalFilter $filter
You can also use the filter in conjunction with the "New-DellHistoricalFilter" cmdlet. My example grabs data from the last hour -
$startdate = (Get-Date).AddHours(-1)
$finishdate = (get-date)
$lasthour = New-DellHistoricalFilter -FilterTime $filter -StartTime $startdate -EndTime $finishdate
Get-DellScControllerHistoricalIoUsage -HistoricalFilter $lasthour
Hopefully this helps!