Advertisement
vPowerCLI

Untitled

Jan 22nd, 2012
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Before: this will return each object after processing it
  2. [vSphere PowerCLI] C:\> Get-VM | Get-VMUsefulStats | Measure-Object
  3.  
  4. Count    : 21
  5. Average  :
  6. Sum      :
  7. Maximum  :
  8. Minimum  :
  9. Property :
  10.  
  11. [vSphere PowerCLI] C:\> Measure-Command{Get-VM | Get-VMUsefulStats}
  12.  
  13. Days              : 0
  14. Hours             : 0
  15. Minutes           : 0
  16. Seconds           : 13
  17. Milliseconds      : 637
  18. Ticks             : 136377882
  19. TotalDays         : 0.000157844770833333
  20. TotalHours        : 0.0037882745
  21. TotalMinutes      : 0.22729647
  22. TotalSeconds      : 13.6377882
  23. TotalMilliseconds : 13637.7882
  24.  
  25. #After: This will return array of objects after all have been proccessed
  26. [vSphere PowerCLI] C:\> Get-VM | Get-VMUsefulStats | Measure-Object
  27.  
  28. Count    : 21
  29. Average  :
  30. Sum      :
  31. Maximum  :
  32. Minimum  :
  33. Property :
  34.  
  35. [vSphere PowerCLI] C:\> Measure-Command{Get-VM | Get-VMUsefulStats}
  36.  
  37. Days              : 0
  38. Hours             : 0
  39. Minutes           : 0
  40. Seconds           : 4
  41. Milliseconds      : 712
  42. Ticks             : 47129849
  43. TotalDays         : 5.45484363425926E-05
  44. TotalHours        : 0.00130916247222222
  45. TotalMinutes      : 0.0785497483333333
  46. TotalSeconds      : 4.7129849
  47. TotalMilliseconds : 4712.9849
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement