smitmartijn / Cisco-UCS-Inventory-Script

Cisco UCS Inventory Script
36 stars 30 forks source link

- Order faults better: severities from 1 to higher and created dates … #6

Closed smitmartijn closed 6 years ago

smitmartijn commented 6 years ago

…descending

davryan commented 6 years ago

Hi... Is there a duplicate on line 782 of sort-object

Get all UCS Faults sorted by severity

$Global:TMPOUTPUT += Get-UcsFault | Sort-Object Sort-Object -Property @{Expression = {$.Severity}; Ascending = $true}, Created -Descending | Select-Object Severity,Created,Descr,dn | ConvertTo-Html -Fragment