Vm_vnetwork_info – Brocade Network Advisor SAN + IP User Manual v12.1.0 User Manual
Page 2361
2324
Brocade Network Advisor SAN + IP User Manual
53-1002949-01
Views
I
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
SELECT de.device_id, de.ip_address AS device_ip, se.target_type, sp.id AS
target_id, sp.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 switch_port sp ON se.target_type = 4 AND se.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;
VM_VNETWORK_INFO
This view provideds combine VM and device information to derive VM to the ingress switch port
information.
create or replace view VM_VNETWORK_INFO as
select
VM_HOST.HYPERVISOR_NAME as VHOST_NAME,
VM_VIRTUAL_MACHINE.NAME as VM_NAME,
VM_VIRTUAL_MACHINE.HYPERVISOR_VM_ID as VM_ID,
VM_VIRTUAL_ETHERNET_ADAPTER.MAC_ADDRESS as VNIC_MAC,