VMware Cloud Community
vbhost
Contributor
Contributor

Vcheck Report pulls up VM/HOST Alarm description as "System.object"

When I run the Vcheck  script by Alan Renouf, the latest one, the output for the VM & Host Alarms has the description as "System.Object[]".
Also, all the server names are twice in each row for all the Alarms, example "HA Configuration issue", "DRS Rule" "Host configuration issues", "Host Alarms", "Snapshot Information", "Invalid or Inaccessible VM" "No VM Tools", "VM Tools issues", "VM Alarms", "Snapshots Oversize".
I am only pulling the reports for the above categories, because that is all I need. Need some help with this.
Attached sample screenshot, can someone please help. I have posted it on Github as well, but haven't got any response till now

https://cloud.githubusercontent.com/assets/20863238/17443891/bab7197c-5b5a-11e6-9a84-85019970dc95.pn...

0 Kudos
1 Reply
LucD
Leadership
Leadership

System.Object is PowerShell's way of display an array in your output.

I suspect you may have multiple vSphere Server connections open when you run the vCheck script.

Display the $global:defaultviservers variable, and check if there are multiple entries in there.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos