Snmp_data_info, Snmp_expr_data_info, Snmp_data_view – Brocade Network Advisor SAN + IP User Manual v12.1.0 User Manual
Page 2359
2322
Brocade Network Advisor SAN + IP User Manual
53-1002949-01
Views
I
coalesce (CS_VS.IP_ADDRESS, CS_ME.IP_ADDRESS, DEVICE_ENCLOSURE.IP_ADDRESS) as
SAN_IP_ADDRESS,
VIRTUAL_SWITCH.VIRTUAL_FABRIC_ID,
coalesce (VIRTUAL_SWITCH.WWN, CS_ME.WWN, DEVICE.NODE_WWN) as NODE_WWN
from
MANAGED_ELEMENT
left outer join VIRTUAL_SWITCH on MANAGED_ELEMENT.ID =
VIRTUAL_SWITCH.MANAGED_ELEMENT_ID
left outer join CORE_SWITCH CS_ME on (MANAGED_ELEMENT.ID =
CS_ME.MANAGED_ELEMENT_ID)
left outer join CORE_SWITCH CS_VS on (CS_VS.ID =
VIRTUAL_SWITCH.CORE_SWITCH_ID)
left outer join DEVICE on MANAGED_ELEMENT.ID = DEVICE.MANAGED_ELEMENT_ID
left outer join DEVICE_ENCLOSURE on MANAGED_ELEMENT.ID =
DEVICE_ENCLOSURE.MANAGED_ELEMENT_ID;
SNMP_DATA_INFO
create or replace view SNMP_DATA_INFO as
select * from SNMP_DATA
union all
select * from SNMP_DATA_30MIN
union all
select * from SNMP_DATA_2HOUR
union all
select * from SNMP_DATA_1DAY;
SNMP_EXPR_DATA_INFO
create or replace view SNMP_EXPR_DATA_INFO as
select * from SNMP_EXPR_DATA
union all
select * from SNMP_EXPR_DATA_30MIN
union all
select * from SNMP_EXPR_DATA_2HOUR
union all
select * from SNMP_EXPR_DATA_1DAY;
SNMP_DATA_VIEW
create or replace view snmp_data_view as
( ( ( ( SELECT de.device_id, de.ip_address AS
device_ip, se.target_type, de.device_id AS target_id, de.sys_name AS target_name,
1 AS collectible_type, se.expression_id AS collectible_id, se.collector_id, (
SELECT perf_collector.name AS collector_name
FROM perf_collector
WHERE perf_collector.collector_id
= se.collector_id) AS collector_name, ( SELECT snmp_expression.name AS
collectible_name
FROM snmp_expression
WHERE snmp_expression.expression_id
= se.expression_id) AS collectible_name, ( SELECT snmp_expression.equation AS
collectible_detail
FROM snmp_expression