Views

I

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,

1AS 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 device de ON se.target_id = de.device_id WHERE se.target_type = 0

UNION ALL

SELECT de.device_id, de.ip_address AS

device_ip, sd.target_type, de.device_id AS target_id, de.sys_name AS target_name,

0AS 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 device de ON sd.target_id = de.device_id WHERE sd.target_type = 0::numeric)

UNION ALL

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

Brocade Network Advisor IP User Manual

1679

53-1003056-01

 

Page 1731
Image 1731
Brocade Communications Systems IP250 user manual Snmpexprdatainfo, Snmpdataview