Sample query result, Summary of all events – HP Neoview Release 2.5 Software User Manual
Page 72
Example A-9 Summary of all Events
This report summarizes all events for a given time period and returns results grouped by SSID
and event number.
SELECT
COUNT(*) AS CNT,
EVENT_NUMBER AS EVENT_NUMBER,
CASE
WHEN LEFT(SSID,6) = 'TANDEM'
THEN SUBSTRING(SUBSTRING(SSID
FROM
CHAR_LENGTH('TANDEM. '))FOR LOCATE('.' ,SUBSTRING(SSID
FROM
CHAR_LENGTH('TANDEM. ')) )-1)
ELSE SSID
END AS SUB_SYS,
MIN(GENERATED_TIMESTAMP_LCT) AS FIRST_TIME,
MAX(GENERATED_TIMESTAMP_LCT) AS LAST_TIME,
TRIM(SUBSTRING(MAX(TEXT)
FROM
CHAR_LENGTH('00:00 01FEB09 001.01.1000 ')) ) AS EXAMPLE_EVENT_TEXT,
SSID AS SSID
FROM
NEO.HP_METRICS.EVENTS_VW1
WHERE
GENERATED_TIMESTAMP_LCT >= TIMESTAMP '$$__FROM_TIME$$' and
GENERATED_TIMESTAMP_LCT <= TIMESTAMP '$$__TO_TIME$$'
GROUP BY
SSID,
EVENT_NUMBER
ORDER BY
CNT DESC FOR READ UNCOMMITTED ACCESS IN SHARE MODE
;
Sample Query Result
This example shows a report summarizing all events for a given time period and returns results
grouped by SSID and event number.
72
Sample Queries for Event Information
- Scripting Toolkit for Linux (68 pages)
- Scripting Toolkit for Windows 9.50 (62 pages)
- Scripting Toolkit for Windows 9.60 (62 pages)
- Storage Area Manager (13 pages)
- Core HP-UX (5 pages)
- Matrix Operating Environment Software (198 pages)
- Matrix Operating Environment Software (66 pages)
- Matrix Operating Environment Software (95 pages)
- Matrix Operating Environment Software (152 pages)
- Matrix Operating Environment Software (264 pages)
- Matrix Operating Environment Software (138 pages)
- Matrix Operating Environment Software (137 pages)
- Matrix Operating Environment Software (97 pages)
- Matrix Operating Environment Software (33 pages)
- Matrix Operating Environment Software (142 pages)
- Matrix Operating Environment Software (189 pages)
- Matrix Operating Environment Software (58 pages)
- Matrix Operating Environment Software (68 pages)
- Matrix Operating Environment Software (79 pages)
- Matrix Operating Environment Software (223 pages)
- Matrix Operating Environment Software (136 pages)
- Matrix Operating Environment Software (34 pages)
- Matrix Operating Environment Software (63 pages)
- Matrix Operating Environment Software (67 pages)
- Matrix Operating Environment Software (128 pages)
- Matrix Operating Environment Software (104 pages)
- Matrix Operating Environment Software (75 pages)
- Matrix Operating Environment Software (245 pages)
- Matrix Operating Environment Software (209 pages)
- Matrix Operating Environment Software (71 pages)
- Matrix Operating Environment Software (239 pages)
- Matrix Operating Environment Software (107 pages)
- Matrix Operating Environment Software (77 pages)
- Insight Management-Software (148 pages)
- Matrix Operating Environment Software (80 pages)
- Insight Management-Software (128 pages)
- Matrix Operating Environment Software (132 pages)
- Matrix Operating Environment Software (74 pages)
- Matrix Operating Environment Software (76 pages)
- Matrix Operating Environment Software (233 pages)
- Matrix Operating Environment Software (61 pages)
- Matrix Operating Environment Software (232 pages)
- Matrix Operating Environment Software (70 pages)
- Matrix Operating Environment Software (120 pages)
- Matrix Operating Environment Software (36 pages)