beautypg.com

Ee_monitor_stats_5min_info, Ee_monitor_stats_30min_info, Ee_monitor_stats_2hour_info – Brocade Network Advisor SAN + IP User Manual v12.3.0 User Manual

Page 2578

background image

2506

Brocade Network Advisor SAN + IP User Manual

53-1003155-01

Views

I

left join SWITCH_PORT SWPORT on DEVICE_CONNECTION.SWITCH_PORT_ID = SWPORT.ID

left join SWITCH_PORT AGPORT on DEVICE_CONNECTION.AG_PORT_ID = AGPORT.ID

left join HBA_PORT_DEVICE_PORT_MAP on DEVICE_PORT.ID =

HBA_PORT_DEVICE_PORT_MAP.DEVICE_PORT_ID

left join HBA_PORT on HBA_PORT_DEVICE_PORT_MAP.HBA_PORT_ID =

HBA_PORT.DEVICE_PORT_ID

left join HBA on HBA_PORT.HBA_ID = HBA.ID

left join VM_FC_HBA_DEVICE_PORT_MAP ON

VM_FC_HBA_DEVICE_PORT_MAP.DEVICE_PORT_ID = DEVICE_PORT.ID

left join VM_FC_HBA ON VM_FC_HBA.ID = VM_FC_HBA_DEVICE_PORT_MAP.VM_FC_HBA_ID

left join VM_HOST ON VM_HOST.DEVICE_ENCLOSURE_ID = VM_FC_HBA.VM_HOST_ID

left join DEVICE_ENCLOSURE_MEMBER on DEVICE_PORT.ID =

DEVICE_ENCLOSURE_MEMBER.DEVICE_PORT_ID

left join DEVICE_NODE DN on DEVICE_PORT.NODE_ID = DN.ID

left join USER_DEFINED_DEVICE_DETAIL USERDEFINEDDETAILS on DN.WWN =

USERDEFINEDDETAILS.WWN;

EE_MONITOR_STATS_5MIN_INFO

create or replace view EE_MONITOR_STATS_5MIN_INFO as

select VIRTUAL_SWITCH.ID as VIRTUAL_SWITCH_ID,

ME_ID,

TARGET_ID as EE_MONITOR_ID,

timestamp with time zone 'epoch' + TIME_IN_SECONDS * interval '1 second' as

CREATION_TIME,

sum(case when MEASURE_ID = 208 then value else 0 end) as TX_UTILIZATION,

sum(case when MEASURE_ID = 209 then value else 0 end) as RX_UTILIZATION,

sum(case when MEASURE_ID = 210 then value else 0 end) as CRC_ERRORS

from TIME_SERIES_DATA_1, VIRTUAL_SWITCH

where ME_ID = MANAGED_ELEMENT_ID and COLLECTOR_ID = 16

group by ME_ID, TARGET_TYPE, TARGET_ID, TIME_IN_SECONDS,VIRTUAL_SWITCH_ID order

by TIME_IN_SECONDS desc;

EE_MONITOR_STATS_30MIN_INFO

create or replace view EE_MONITOR_STATS_30MIN_INFO as

select VIRTUAL_SWITCH.ID as VIRTUAL_SWITCH_ID,

ME_ID,

TARGET_ID as EE_MONITOR_ID,

timestamp with time zone 'epoch' + TIME_IN_SECONDS * interval '1 second' as

CREATION_TIME,

sum(case when MEASURE_ID = 208 then value else 0 end) as TX_UTILIZATION,

sum(case when MEASURE_ID = 209 then value else 0 end) as RX_UTILIZATION,

sum(case when MEASURE_ID = 210 then value else 0 end) as CRC_ERRORS

from TIME_SERIES_DATA_1_30MIN, VIRTUAL_SWITCH

where ME_ID = MANAGED_ELEMENT_ID and COLLECTOR_ID = 16

group by ME_ID, TARGET_TYPE, TARGET_ID, TIME_IN_SECONDS,VIRTUAL_SWITCH_ID order

by TIME_IN_SECONDS desc;

EE_MONITOR_STATS_2HOUR_INFO

create or replace view EE_MONITOR_STATS_2HOUR_INFO as

select VIRTUAL_SWITCH.ID as VIRTUAL_SWITCH_ID,

ME_ID,

TARGET_ID as EE_MONITOR_ID,