Hi LucD, sorry for late reply.
The Script shows events of vm's and Hosts.
We do not have any linked mode on VC.
###############################
Get-Datacenter | where {$_.ExtensionData.triggeredAlarmState} | %{ $_.ExtensionData.triggeredAlarmState |
Select @{N="Entity";E={Get-View $_.Entity | Select -ExpandProperty Name}},@{N="Alarm";E={Get-View $_.Alarm | Select -ExpandProperty Info | Select -ExpandProperty Name}},Time,OverallStatus,
@{N="vCenter";E={$_.Uid.split('@')[1].Split(':')[1]}}}
This one i am getting triggered Alarms information 90%. Can you please correct me to show Vcenter Name.