Brocade Network Advisor Documentation Updates v11.1.x (53-1002363-03, August 2011)
Brocade Network Advisor Documentation Updates 263
53-1002363-02
Views
E
SELECT de.device_id, de.ip_address AS device_ip, sd.target_type,
ifs.interface_id AS target_id, ifs.if_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 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;