Gortee
Hot Shot
Hot Shot

Get vmwVpxdObjValue in powercli

Hi all,

I have a fun issue.  I am using SNMP to send vCenter alerts to a event gather system in order to ticket on issues.   The gather system has the vCenter MIB's loaded.  All events are coming in as vpxAlarms with details.  The unique field in the details is vmwVpxdObjValue.   This seems to be set to the name of the Alarm unless it's a VMware built in alarm.  They have unique names for example:

I create a alarm called joetest then the field for vmwVpxdObjValue = joetest - event info

On the built in alarm alarm.HostConnectionStateAlarm it comes in as : vmwVpxdObjValue = alarm.HostConnectionStateAlarm

I am trying to figure how using powerCLI to get that value on VMware built in alarms.  Using powercli I try to get everything about a alarm with the follow code:

$bob = Get-AlarmDefinition -Name "Host connection and power state"

$bob | fl

Does not produce the vmwVpxdObjValue it does produce the alarm-### which seems to be unique per vCenter. 

Using the MOB I can look into the alarm-### info using the following methods:

https://IP_Vcenter/mob/?moid=alarm-145

But the entry for alarm.HostConnectionStateAlarm is no where to be found...

What am I missing on getting this value?

Any help is very welcome.

Thanks,

Joseph

Joseph Griffiths http://blog.jgriffiths.org @Gortees VCDX-DCV #143
0 Kudos
1 Reply
Gortee
Hot Shot
Hot Shot

I did not 100% solve this issue.  I did find a work around I posted the output on my blog.  Hope it helps someone else.

http://blog.jgriffiths.org/?p=1045

Joseph Griffiths http://blog.jgriffiths.org @Gortees VCDX-DCV #143
0 Kudos