VMware Cloud Community
wamatha
Contributor
Contributor

VMware ESX

I would like to export the alrms to an excel spreadsheet for analysis. How can I do this?

0 Kudos
3 Replies
AWo
Immortal
Immortal

You have posted this in the wrong forum. The moderator will move this.

You can export the table VPX_ALARM_RUNTIME, which holds the alarms. To get the type of alarm you also need the table VPX_ALARM, as this holds the alarm definitions.

To get it into Excel, use the "Data > Import external data" function via the ODBC connection to the VC database. If you do not have this ODBC connection you have to configure this (just take a look at the VC server's ODBC connection).

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
AWo
Immortal
Immortal

You can start with this query: select * from vpx_entity, vpx_alarm, vpx_alarm_runtime where vpx_alarm_runtime.alarm_id = vpx_alarm.alarm_id and vpx_alarm_runtime.entity_id = vpx_entity.id;

This one shows selected fields:

select vpx_entity.name, vpx_alarm.name, vpx_alarm_runtime.metric_value, vpx_alarm_runtime.created_time from vpx_entity, vpx_alarm, vpx_alarm_runtime where vpx_alarm_runtime.alarm_id = vpx_alarm.alarm_id and vpx_alarm_runtime.entity_id = vpx_entity.id;

When you go through the import data dialog in Excel you can choose whatever you like. At the end you can edit the query the query in Microsft Query. Click on the SQL button there, delete the existing query (which reflects what you have selected in the dialog before) and enter this one or the one you would like, respectively.

Message was edited by: AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
RDPetruska
Leadership
Leadership

Thread moved to ESX 3.5 forum.

0 Kudos