Guest User

Untitled

a guest
Aug 15th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Sub ShowInternalAgentsMonitors
  2. 'Write the list of agents to the screen
  3. For Each agent In InternalAgents.Items
  4. WScript.Echo ""
  5. WScript.Echo "-------------------------------------------------------------------------------"
  6. WScript.Echo " AGENT: " & agent.Name
  7. WScript.Echo "-------------------------------------------------------------------------------"
  8.  
  9. strHeader = ""
  10. strRow = ""
  11.  
  12. For Each monitor In agent.MonitorList.Items
  13.  
  14. For Each objMetric In Monitor.MetricList.Items
  15. strHeader = strHeader & format(objMetric.Name, objMetric.Width)
  16. strRow = strRow & format(objMetric.Result & objMetric.Suffix,
  17. objMetric.Width)
  18. Next
  19.  
  20. Next
  21.  
  22. WScript.Echo strHeader
  23. WScript.Echo strRow
  24. Next
  25. End Sub
Add Comment
Please, Sign In to add comment