Bhaskar Jayakrishnan | Tsu-Sheng,
We do not have a custom cmdlet to do this and plan to introduce one shortly. Meanwhile, you can try the following workaround:
Function ClearStats() { param( [parameter(Mandatory=${true})][Cisco.Ucs.ManagedObject]${mo} ) $dn = New-Object "Cisco.Ucs.Dn" $dn.Value = $mo.Dn; $dnSet = New-Object "Cisco.Ucs.DnSet" $dnSet.AddChild($dn); [Cisco.Ucs.MethodFactory]::StatsClearInterval($mo.GetHandle(), $dnSet, $null) }
Sample Usage: Get-UcsEtherTxStats | % { ClearStats $_ }
Essentially, you need to pass the statistics object in which *Max,*Min,*Avg values need to be cleared to the ClearStats function.
Thanks, - bhaskar |
| Please sign in to flag this as inappropriate. |