Vcs_cluster_member_info, Reset_vcs_licensed – Brocade Network Advisor SAN + IP User Manual v12.1.0 User Manual
Page 2363
2326
Brocade Network Advisor SAN + IP User Manual
53-1002949-01
Views
I
VM_STD_VSWITCH_PORT_GROUP,
VM_STANDARD_VIRTUAL_SWITCH,
VM_PHYSICAL_NIC,
VM_HOST_END_DEV_CONNECTIVITY,
INTERFACE,
DEVICE,
PHYSICAL_INTERFACE,
PHYSICAL_PORT
where
VM_VIRTUAL_MACHINE.ID = VM_VIRTUAL_ETHERNET_ADAPTER.VIRTUAL_MACHINE_ID and
VM_VIRTUAL_ETHERNET_ADAPTER.VM_STD_VSWITCH_PORT_GROUP_ID is not null and
VM_VIRTUAL_ETHERNET_ADAPTER.VM_STD_VSWITCH_PORT_GROUP_ID =
VM_STD_VSWITCH_PORT_GROUP.ID and
VM_STD_VSWITCH_PORT_GROUP.VM_STANDARD_VIRTUAL__SWITCH_ID =
VM_STANDARD_VIRTUAL_SWITCH.ID and
VM_STANDARD_VIRTUAL_SWITCH.ID = VM_PHYSICAL_NIC.VM_STANDARD_VIRTUAL_SWITCH_ID
and
VM_PHYSICAL_NIC.ID = VM_HOST_END_DEV_CONNECTIVITY.VM_PHYSICAL_NIC_ID and
VM_HOST_END_DEV_CONNECTIVITY.INTERFACE_ID = INTERFACE.INTERFACE_ID and
INTERFACE.DEVICE_ID = DEVICE.DEVICE_ID and
VM_HOST_END_DEV_CONNECTIVITY.INTERFACE_ID = PHYSICAL_INTERFACE.INTERFACE_ID
and
PHYSICAL_INTERFACE.PHYSICAL_PORT_ID = PHYSICAL_PORT.PHYSICAL_PORT_ID;
VCS_CLUSTER_MEMBER_INFO
CREATE VIEW vcs_cluster_member_info AS
select
VCS_DEVICE.DEVICE_ID as VCS_DEVICE_ID,
VCS_DEVICE.MANAGED_ELEMENT_ID as VCS_ME_ID,
MEMBER_DEVICE.DEVICE_ID as MEMBER_DEVICE_ID,
MEMBER_DEVICE.MANAGED_ELEMENT_ID as MEMBER_ME_ID,
VCS_MEMBER.CREATION_TIME,
VCS_MEMBER.TRUSTED,
VCS_MEMBER.MISSING,
VCS_MEMBER.MISSING_TIME,
VCS_MEMBER.STATE
from
device VCS_DEVICE,
device MEMBER_DEVICE,
VCS_CLUSTER_MEMBER VCS_MEMBER
where
VCS_MEMBER.CLUSTER_ME_ID = VCS_DEVICE.MANAGED_ELEMENT_ID AND
VCS_MEMBER.MEMBER_ME_ID = MEMBER_DEVICE.MANAGED_ELEMENT_ID;
RESET_VCS_LICENSED
CREATE OR REPLACE FUNCTION reset_vcs_licensed(no_of_licenses integer)
RETURNS void AS
$BODY$
begin
UPDATE fabric set vcs_licensed = 0;
UPDATE device set vcs_licensed = 0;
UPDATE fabric set vcs_licensed = 1 WHERE fabric.id in (SELECT id FROM fabric
ORDER BY creation_time LIMIT no_of_licenses);
UPDATE device set vcs_licensed = 1 WHERE device.managed_element_id in (SELECT
vcs_cluster_me_id FROM fabric_vcs_cluster_map WHERE fabric_id in (SELECT id FROM
fabric WHERE vcs_licensed=1));