1680 Brocade Network Advisor IP User Manual
53-1003056-01
Views
I
FROM perf_collector
WHERE perf_collector.collector_id =
sd.collector_id) AS collector_name, ( SELECT (mib_object.name::text || '.'::text)
|| sd.mib_index::text AS collectible_name
FROM mib_object
WHERE mib_object.mib_object_id =
sd.mib_object_id) AS collectible_name, ( SELECT mib_object.oid AS
collectible_detail
FROM mib_object
WHERE mib_object.mib_object_id =
sd.mib_object_id) AS collectible_detail, sd.value, sd.time_in_seconds,
sd.mib_index
FROM snmp_data_info sd
JOIN interface ifs ON sd.target_type = 1::numeric AND
sd.target_id = ifs.interface_id
JOIN device de ON ifs.device_id = de.device_id)
UNION ALL
SELECT de.device_id, de.ip_address AS device_ip,
se.target_type, ifs.interface_id AS target_id, ifs.if_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
WHERE snmp_expression.expression_id =
se.expression_id) AS collectible_detail, se.value, se.time_in_seconds, '' AS
mib_index
FROM snmp_expr_data_info se
JOIN interface ifs ON se.target_type = 1 AND se.target_id =
ifs.interface_id
JOIN device de ON ifs.device_id = de.device_id)
UNION ALL
SELECT de.device_id, de.ip_address AS device_ip, sd.target_type,
sp.id AS target_id, sp.name AS target_name, 0 AS collectible_type,
sd.mib_object_id AS collectible_id, sd.collector_id, ( SELECT perf_collector.name
AS collector_name
FROM perf_collector
WHERE perf_collector.collector_id = sd.collector_id) AS
collector_name, ( SELECT (mib_object.name::text || '.'::text) ||
sd.mib_index::text AS collectible_name
FROM mib_object
WHERE mib_object.mib_object_id = sd.mib_object_id) AS
collectible_name, ( SELECT mib_object.oid AS collectible_detail
FROM mib_object
WHERE mib_object.mib_object_id = sd.mib_object_id) AS
collectible_detail, sd.value, sd.time_in_seconds, sd.mib_index
FROM snmp_data_info sd
JOIN switch_port sp ON sd.target_type = 4::numeric AND sd.target_id
= sp.id
JOIN device de ON (( SELECT sw.managed_element_id
FROM virtual_switch sw
WHERE sw.id = sp.virtual_switch_id)) = de.managed_element_id)
UNION ALL