Vm_address_info – Brocade Network Advisor SAN + IP User Manual v12.3.0 User Manual
Page 2653
Brocade Network Advisor SAN + IP User Manual
2581
53-1003155-01
Views
I
VIRTUAL_PORT_WWN_DETAILS.SWITCH_PORT_NUMBER,
VIRTUAL_PORT_WWN_DETAILS.SLOT_NUMBER,
coalesce(CS1.IP_ADDRESS, CS2.IP_ADDRESS, UDDD.IP_ADDRESS) as IP_ADDRESS,
coalesce(VS1.NAME, VS2.NAME, UDDD.NAME) as SWITCH_NAME,
coalesce(VS1.WWN, VS2.WWN) as SWITCH_WWN,
VIRTUAL_PORT_WWN_DETAILS.AG_NODE_WWN,
VIRTUAL_PORT_WWN_DETAILS.AG_PORT_NUMBER,
VIRTUAL_PORT_WWN_DETAILS.STATUS,
VIRTUAL_PORT_WWN_DETAILS.TYPE,
VIRTUAL_PORT_WWN_DETAILS.USER_VPWWN,
VIRTUAL_PORT_WWN_DETAILS.AUTO_VPWWN,
VIRTUAL_PORT_WWN_DETAILS.DEVICE_PORT_WWN,
coalesce(SP1.ID, SP2.ID) as SWITCH_PORT_ID,
coalesce(SP1.WWN, SP2.WWN) as PORT_WWN,
coalesce(SP1.TYPE, SP2.TYPE) AS PORT_TYPE,
coalesce(SP1.NAME, SP2.NAME) as PORT_NAME
from
VIRTUAL_PORT_WWN_DETAILS
left outer join VIRTUAL_SWITCH VS1
on (VIRTUAL_PORT_WWN_DETAILS.AG_PORT_NUMBER = -1
and VIRTUAL_PORT_WWN_DETAILS.SWITCH_ID = VS1.ID)
left outer join VIRTUAL_SWITCH VS2
on VIRTUAL_PORT_WWN_DETAILS.AG_NODE_WWN = VS2.WWN
left outer join CORE_SWITCH CS1
on VS1.CORE_SWITCH_ID = CS1.ID
left outer join CORE_SWITCH CS2
on VS2.CORE_SWITCH_ID = CS2.ID
left outer join SWITCH_PORT SP1
on (SP1.VIRTUAL_SWITCH_ID=VS1.ID
and VIRTUAL_PORT_WWN_DETAILS.SLOT_NUMBER = SP1.SLOT_NUMBER
and VIRTUAL_PORT_WWN_DETAILS.SWITCH_PORT_NUMBER = SP1.PORT_NUMBER
and SP1.TYPE NOT IN ('GigE-Port','TE-Port'))
left outer join SWITCH_PORT SP2
on (SP2.VIRTUAL_SWITCH_ID=VS2.ID
and VIRTUAL_PORT_WWN_DETAILS.AG_PORT_NUMBER = SP2.PORT_NUMBER
and SP2.TYPE NOT IN ('GigE-Port','TE-Port'))
left outer join USER_DEFINED_DEVICE_DETAIL UDDD
on VIRTUAL_PORT_WWN_DETAILS.AG_NODE_WWN = UDDD.WWN;
VM_ADDRESS_INFO
create or replace view VM_ADDRESS_INFO AS
select
DECODE(VM_VIRTUAL_ETHERNET_ADAPTER.MAC_ADDRESS::TEXT, 'HEX'::TEXT) AS
MAC_ADDRESS,
VM_VIRTUAL_MACHINE.NAME AS VM_NAME,
DECODE(VM_VIRTUAL_MACHINE.IP_ADDRESS::TEXT, 'HEX'::TEXT) AS VM_ADDRESS,
VM_VCENTER_MEMBER.HOST_NAME AS VM_HOST_NAME,
DECODE(VM_VIRTUAL_MACHINE.IP_ADDRESS::TEXT, 'HEX'::TEXT) AS VM_HOST_ADDRESS,
VM_VIRTUAL_ETHERNET_ADAPTER.VIRTUAL_MACHINE_ID AS VM_ID,
VM_VIRTUAL_MACHINE.HOST_ID AS VM_HOST_ID
FROM
VM_VIRTUAL_MACHINE,
VM_VIRTUAL_ETHERNET_ADAPTER,
VM_VCENTER_MEMBER
WHERE
VM_VIRTUAL_MACHINE.ID = VM_VIRTUAL_ETHERNET_ADAPTER.VIRTUAL_MACHINE_ID