I Views

tsd.time_in_seconds, tsd.measure_index FROM time_series_data_info tsd

JOIN switch_port sp ON (tsd.target_type = 4 OR tsd.target_type = 5 OR tsd.target_type = 6) AND tsd.target_id = sp.id

JOIN switch_info vs ON sp.virtual_switch_id = vs.id

JOIN pm_data_collector ON pm_data_collector.id = tsd.collector_id JOIN measure ON measure.id = tsd.measure_id

UNION ALL

SELECT 0 as device_id, cast (de.ip_address as varchar(255)) AS device_ip, tsd.target_type, de.id AS target_id,

cast (de.physical_switch_name as text) AS target_name, measure.measure_type AS collectible_type, tsd.measure_id AS collectible_id, tsd.collector_id, pdc.name AS collector_name,

(measure.name::text '.'::text) tsd.measure_index::text

AS collectible_name,

measure.detail AS collectible_detail, tsd.value, tsd.time_in_seconds, tsd.measure_index

FROM time_series_data_info tsd

JOIN switch_info de ON tsd.target_id = de.id JOIN pm_data_collector pdc ON pdc.id = tsd.collector_id

JOIN measure ON measure.id = tsd.measure_id WHERE tsd.target_type = 3;

TRILL_INFO

create or replace view TRILL_INFO as select distinct

TRILL.ID,

VCS_DEVICE.DEVICE_ID as VCS_DEVICE_ID, TRILL.CLUSTER_ME_ID,

TRILL.COST,

TRILL.TYPE as LINK_TYPE,

TRILL.MISSING,

TRILL.TRUNKED, TRILL.SOURCE_DOMAIN_ID, TRILL.SOURCE_PORT_NUMBER,

TRILL.SOURCE_PORT_NAME as SOURCE_SWITCH_PORT_NAME, TRILL.SOURCE_ME_ID,

SOURCE_DEVICE.DEVICE_ID AS SOURCE_DEVICE_ID, TRILL.DEST_DOMAIN_ID,

TRILL.DEST_PORT_NUMBER,

TRILL.DEST_PORT_NAME as DEST_SWITCH_PORT_NAME, TRILL.DEST_ME_ID,

DEST_DEVICE.DEVICE_ID AS DEST_DEVICE_ID

from

TRILL,

device VCS_DEVICE, device SOURCE_DEVICE,

VIRTUAL_SWITCH SOURCE_VIRTUAL_SWITCH, device DEST_DEVICE, VIRTUAL_SWITCH DEST_VIRTUAL_SWITCH

where

SOURCE_DEVICE.MANAGED_ELEMENT_ID = TRILL.SOURCE_ME_ID and DEST_DEVICE.MANAGED_ELEMENT_ID = TRILL.DEST_ME_ID and VCS_DEVICE.MANAGED_ELEMENT_ID = TRILL.CLUSTER_ME_ID and SOURCE_VIRTUAL_SWITCH.MANAGED_ELEMENT_ID = TRILL.SOURCE_ME_ID and

DEST_VIRTUAL_SWITCH.MANAGED_ELEMENT_ID = TRILL.DEST_ME_ID;

1658

Brocade Network Advisor IP User Manual

 

53-1003056-01

Page 1710
Image 1710
Brocade Communications Systems IP250 user manual Trillinfo