03-01-2017 03:01 PM - edited 03-01-2019 06:45 AM
Task Name | This workflow will get from a VM ID the VM Domain Name defined in a VDC Service Delivery Policy |
Description | |
Prerequisites | Tested on UCSD 6.0.1.0 and 6.1 |
Category | Workflow |
Components | vSphere 5.x |
User Inputs |
Instructions for Regular Workflow Use:
The Log:
Service Request ID: 227
Workflow Inputs:
- color
Mar 01, 2017 22:47:51 UTC Request submitted
Mar 01, 2017 22:47:52 UTC Executing workflow item number 1
Mar 01, 2017 22:47:52 UTC Completed workflow item number 1, with status Completed
Mar 01, 2017 22:47:58 UTC Executing workflow item number 2
Mar 01, 2017 22:47:58 UTC Trigger context executeWorkFlowStep called
Mar 01, 2017 22:47:58 UTC Executing custom action GetMyDomain (custom_getVMSummary)
Mar 01, 2017 22:47:58 UTC Executing custom action GetMyDomain (custom_getVMSummary) for VM 44 (vm-SR188)
Mar 01, 2017 22:47:58 UTC Executing custom script for getVMSummary
Mar 01, 2017 22:47:58 UTC vmId = 44
Mar 01, 2017 22:47:58 UTC Overview_VM_ID = 44
Mar 01, 2017 22:47:58 UTC Overview_Instance_Name = vm-SR188
Mar 01, 2017 22:47:58 UTC Overview_Status = ON (poweredOn)
Mar 01, 2017 22:47:58 UTC Overview_IP_Address =
Mar 01, 2017 22:47:58 UTC Overview_Hostname = null
Mar 01, 2017 22:47:58 UTC Overview_Image_ID = vm-SR188
Mar 01, 2017 22:47:58 UTC Overview_Cloud_Name = Dallas110
Mar 01, 2017 22:47:58 UTC Overview_Cloud_Type = VMWare
Mar 01, 2017 22:47:58 UTC Ownership_Group = developer
Mar 01, 2017 22:47:58 UTC Ownership_vDC = VDC_Dallas_Prod
Mar 01, 2017 22:47:58 UTC Ownership_Category = Generic VM
Mar 01, 2017 22:47:58 UTC Ownership_Service_Request_ID = 188
Mar 01, 2017 22:47:58 UTC Ownership_Label = CallManager1
Mar 01, 2017 22:47:58 UTC Ownership_Provisioned_Time = Feb 20, 2017 16:22:57 UTC
Mar 01, 2017 22:47:58 UTC Ownership_Scheduled_Termination_Time =
Mar 01, 2017 22:47:58 UTC Overview_Host_Node = 172.17.32.113
Mar 01, 2017 22:47:58 UTC Network_Port_Group = VM Network
Mar 01, 2017 22:47:58 UTC Network_VLAN_ID = 0
Mar 01, 2017 22:47:58 UTC Network_No_of_vNics = 1
Mar 01, 2017 22:47:58 UTC Network_vNic_Mac_Address = 00:50:56:94:11:62
Mar 01, 2017 22:47:58 UTC Network_vNic_Device_Config_Id = 4000
Mar 01, 2017 22:47:58 UTC Overview_Boot_Time = Feb 20, 2017 16:41:35 UTC
Mar 01, 2017 22:47:58 UTC Overview_Config_Name = vm-SR188
Mar 01, 2017 22:47:58 UTC Overview_VM_Version = vmx-08
Mar 01, 2017 22:47:58 UTC Resources_Resource_Pool = Class_Pool_1
Mar 01, 2017 22:47:58 UTC Resources_Num_Virtual_CPUs = 1
Mar 01, 2017 22:47:58 UTC Resources_CPU_Reserved_MHz = 0
Mar 01, 2017 22:47:58 UTC Resources_CPU_Limit_MHz = -1
Mar 01, 2017 22:47:58 UTC Resources_CPU_Overhead_Limit_MHz = 0
Mar 01, 2017 22:47:58 UTC Resources_CPU_Shares = 1000
Mar 01, 2017 22:47:58 UTC Resources_Memory_MB = 2048
Mar 01, 2017 22:47:58 UTC Resources_Memory_Reserved_MB = 2048
Mar 01, 2017 22:47:58 UTC Resources_Memory_Limit_MB = 0
Mar 01, 2017 22:47:58 UTC Resources_Memory_Overhead_Limit_MB = 58
Mar 01, 2017 22:47:58 UTC Resources_Memory_Shares = 20480
Mar 01, 2017 22:47:58 UTC Storage_Total_Provisioned_GB = 110.04
Mar 01, 2017 22:47:58 UTC Storage_Committed_GB = 110.04
Mar 01, 2017 22:47:58 UTC Storage_Uncommitted_GB = 0
Mar 01, 2017 22:47:58 UTC Storage_Non_shared_GB = 110.04
Mar 01, 2017 22:47:58 UTC Storage_Data_Store_Names = SAN1
Mar 01, 2017 22:47:58 UTC Storage_VM_Path = [SAN1] vm-SR188/vm-SR188.vmx
Mar 01, 2017 22:47:58 UTC Guest_Information_Guest_OS = Red Hat Enterprise Linux 6 (64-bit)
Mar 01, 2017 22:47:58 UTC Guest_Information_Guest_State = notRunning
Mar 01, 2017 22:47:58 UTC Guest_Information_Tools_Status = guestToolsNotRunning
Mar 01, 2017 22:47:58 UTC Guest_Information_Tools_Version = 0
Mar 01, 2017 22:47:58 UTC Options_Default_PowerOff_Type = soft
Mar 01, 2017 22:47:58 UTC Processing output: Overview_VM_ID
Mar 01, 2017 22:47:58 UTC Processing output: Overview_Instance_Name
Mar 01, 2017 22:47:58 UTC Processing output: Overview_Status
Mar 01, 2017 22:47:58 UTC Processing output: Overview_IP_Address
Mar 01, 2017 22:47:58 UTC Processing output: Overview_Hostname
Mar 01, 2017 22:47:58 UTC output: Overview_Hostname is not set
Mar 01, 2017 22:47:58 UTC Processing output: Overview_Image_ID
Mar 01, 2017 22:47:59 UTC Processing output: Overview_Cloud_Name
Mar 01, 2017 22:47:59 UTC Processing output: Overview_Cloud_Type
Mar 01, 2017 22:47:59 UTC Processing output: Ownership_Group
Mar 01, 2017 22:47:59 UTC Processing output: Ownership_vDC
Mar 01, 2017 22:47:59 UTC Processing output: Ownership_Category
Mar 01, 2017 22:47:59 UTC Processing output: Ownership_Service_Request_ID
Mar 01, 2017 22:47:59 UTC Processing output: Ownership_Label
Mar 01, 2017 22:47:59 UTC Processing output: Ownership_Provisioned_Time
Mar 01, 2017 22:47:59 UTC Processing output: Ownership_Scheduled_Termination_Time
Mar 01, 2017 22:47:59 UTC Processing output: Overview_Host_Node
Mar 01, 2017 22:47:59 UTC Processing output: Network_Port_Group
Mar 01, 2017 22:47:59 UTC Processing output: Network_VLAN_ID
Mar 01, 2017 22:47:59 UTC Processing output: Network_No_of_vNics
Mar 01, 2017 22:47:59 UTC Processing output: Network_vNic_Mac_Address
Mar 01, 2017 22:47:59 UTC Processing output: Network_vNic_Device_Config_Id
Mar 01, 2017 22:47:59 UTC Processing output: Overview_Boot_Time
Mar 01, 2017 22:47:59 UTC Processing output: Overview_Config_Name
Mar 01, 2017 22:47:59 UTC Processing output: Overview_VM_Version
Mar 01, 2017 22:47:59 UTC Processing output: Resources_Resource_Pool
Mar 01, 2017 22:47:59 UTC Processing output: Resources_Num_Virtual_CPUs
Mar 01, 2017 22:47:59 UTC Processing output: Resources_CPU_Reserved_MHz
Mar 01, 2017 22:47:59 UTC Processing output: Resources_CPU_Limit_MHz
Mar 01, 2017 22:47:59 UTC Processing output: Resources_CPU_Overhead_Limit_MHz
Mar 01, 2017 22:47:59 UTC Processing output: Resources_CPU_Shares
Mar 01, 2017 22:47:59 UTC Processing output: Resources_Memory_MB
Mar 01, 2017 22:47:59 UTC Processing output: Resources_Memory_Reserved_MB
Mar 01, 2017 22:48:00 UTC Processing output: Resources_Memory_Limit_MB
Mar 01, 2017 22:48:00 UTC Processing output: Resources_Memory_Overhead_Limit_MB
Mar 01, 2017 22:48:00 UTC Processing output: Resources_Memory_Shares
Mar 01, 2017 22:48:00 UTC Processing output: Storage_Total_Provisioned_GB
Mar 01, 2017 22:48:00 UTC Processing output: Storage_Committed_GB
Mar 01, 2017 22:48:00 UTC Processing output: Storage_Uncommitted_GB
Mar 01, 2017 22:48:00 UTC Processing output: Storage_Non_shared_GB
Mar 01, 2017 22:48:00 UTC Processing output: Storage_Data_Store_Names
Mar 01, 2017 22:48:00 UTC Processing output: Storage_VM_Path
Mar 01, 2017 22:48:00 UTC Processing output: Guest_Information_Guest_OS
Mar 01, 2017 22:48:00 UTC Processing output: Guest_Information_Guest_State
Mar 01, 2017 22:48:00 UTC Processing output: Guest_Information_Tools_Status
Mar 01, 2017 22:48:00 UTC Processing output: Guest_Information_Tools_Version
Mar 01, 2017 22:48:00 UTC Processing output: Options_Default_PowerOff_Type
Mar 01, 2017 22:48:00 UTC Task #2 (GetMyDomain (custom_getVMSummary)) completed successfully in 2 seconds
Mar 01, 2017 22:48:00 UTC Input/Output values for Task #2 (GetMyDomain (custom_getVMSummary)):
Mar 01, 2017 22:48:00 UTC [Template Input:VM_Id = ${VM_ID}]
Mar 01, 2017 22:48:00 UTC [Resolved Template Input: VM_Id = 44]
Mar 01, 2017 22:48:00 UTC [Local Input: VM_Id = 44]
Mar 01, 2017 22:48:00 UTC [Output: Overview_VM_ID = 44]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Instance_Name = vm-SR188]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Status = ON (poweredOn)]
Mar 01, 2017 22:48:00 UTC [Output: Overview_IP_Address = ]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Image_ID = vm-SR188]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Cloud_Name = Dallas110]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Cloud_Type = VMWare]
Mar 01, 2017 22:48:00 UTC [Output: Ownership_Group = developer]
Mar 01, 2017 22:48:00 UTC [Output: Ownership_vDC = VDC_Dallas_Prod]
Mar 01, 2017 22:48:00 UTC [Output: Ownership_Category = Generic VM]
Mar 01, 2017 22:48:00 UTC [Output: Ownership_Service_Request_ID = 188]
Mar 01, 2017 22:48:00 UTC [Output: Ownership_Label = CallManager1]
Mar 01, 2017 22:48:00 UTC [Output: Ownership_Provisioned_Time = Feb 20, 2017 16:22:57 UTC]
Mar 01, 2017 22:48:00 UTC [Output: Ownership_Scheduled_Termination_Time = ]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Host_Node = 172.17.32.113]
Mar 01, 2017 22:48:00 UTC [Output: Network_Port_Group = VM Network]
Mar 01, 2017 22:48:00 UTC [Output: Network_VLAN_ID = 0]
Mar 01, 2017 22:48:00 UTC [Output: Network_No_of_vNics = 1]
Mar 01, 2017 22:48:00 UTC [Output: Network_vNic_Mac_Address = 00:50:56:94:11:62]
Mar 01, 2017 22:48:00 UTC [Output: Network_vNic_Device_Config_Id = 4000]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Boot_Time = Feb 20, 2017 16:41:35 UTC]
Mar 01, 2017 22:48:00 UTC [Output: Overview_Config_Name = vm-SR188]
Mar 01, 2017 22:48:00 UTC [Output: Overview_VM_Version = vmx-08]
Mar 01, 2017 22:48:00 UTC [Output: Resources_Resource_Pool = Class_Pool_1]
Mar 01, 2017 22:48:00 UTC [Output: Resources_Num_Virtual_CPUs = 1]
Mar 01, 2017 22:48:00 UTC [Output: Resources_CPU_Reserved_MHz = 0]
Mar 01, 2017 22:48:00 UTC [Output: Resources_CPU_Limit_MHz = -1]
Mar 01, 2017 22:48:00 UTC [Output: Resources_CPU_Overhead_Limit_MHz = 0]
Mar 01, 2017 22:48:00 UTC [Output: Resources_CPU_Shares = 1000]
Mar 01, 2017 22:48:00 UTC [Output: Resources_Memory_MB = 2048]
Mar 01, 2017 22:48:00 UTC [Output: Resources_Memory_Reserved_MB = 2048]
Mar 01, 2017 22:48:00 UTC [Output: Resources_Memory_Limit_MB = 0]
Mar 01, 2017 22:48:00 UTC [Output: Resources_Memory_Overhead_Limit_MB = 58]
Mar 01, 2017 22:48:00 UTC [Output: Resources_Memory_Shares = 20480]
Mar 01, 2017 22:48:00 UTC [Output: Storage_Total_Provisioned_GB = 110.04]
Mar 01, 2017 22:48:00 UTC [Output: Storage_Committed_GB = 110.04]
Mar 01, 2017 22:48:00 UTC [Output: Storage_Uncommitted_GB = 0]
Mar 01, 2017 22:48:00 UTC [Output: Storage_Non_shared_GB = 110.04]
Mar 01, 2017 22:48:00 UTC [Output: Storage_Data_Store_Names = SAN1]
Mar 01, 2017 22:48:00 UTC [Output: Storage_VM_Path = [SAN1] vm-SR188/vm-SR188.vmx]
Mar 01, 2017 22:48:00 UTC [Output: Guest_Information_Guest_OS = Red Hat Enterprise Linux 6 (64-bit)]
Mar 01, 2017 22:48:00 UTC [Output: Guest_Information_Guest_State = notRunning]
Mar 01, 2017 22:48:00 UTC [Output: Guest_Information_Tools_Status = guestToolsNotRunning]
Mar 01, 2017 22:48:00 UTC [Output: Guest_Information_Tools_Version = 0]
Mar 01, 2017 22:48:00 UTC [Output: Options_Default_PowerOff_Type = soft]
Mar 01, 2017 22:48:00 UTC Completed workflow item number 2, with status Completed
Mar 01, 2017 22:48:04 UTC Executing workflow item number 3
Mar 01, 2017 22:48:04 UTC Trigger context executeWorkFlowStep called
Mar 01, 2017 22:48:04 UTC Executing custom action GetMyDomain (custom_VDC_Name_2_VDC_ID)
Mar 01, 2017 22:48:04 UTC Executing custom action GetMyDomain (custom_VDC_Name_2_VDC_ID) for VM 44 (vm-SR188)
Mar 01, 2017 22:48:04 UTC Executing custom script for VDC_Name_2_VDC_ID
Mar 01, 2017 22:48:09 UTC vdc networkPolicyReport = com.cloupia.model.cIM.APITabularReport@61d27d98
Mar 01, 2017 22:48:09 UTC policyList = [{vDC_ID=2, vDC_Name=VDC_Dallas_Prod, Type=Standard, vDC_Description=, Cloud=Dallas110, Group=developer, Approver_1=, Approver_2=, Status=OK}]
Mar 01, 2017 22:48:09 UTC VDC_ID = null
Mar 01, 2017 22:48:09 UTC VDC_ID = 2
Mar 01, 2017 22:48:09 UTC Processing output: VDC_ID
Mar 01, 2017 22:48:09 UTC Task #3 (GetMyDomain (custom_VDC_Name_2_VDC_ID)) completed successfully in 5 seconds
Mar 01, 2017 22:48:09 UTC Input/Output values for Task #3 (GetMyDomain (custom_VDC_Name_2_VDC_ID)):
Mar 01, 2017 22:48:09 UTC [Mapped Input: VDC_Name = VDC_Dallas_Prod]
Mar 01, 2017 22:48:09 UTC [Output: VDC_ID = 2]
Mar 01, 2017 22:48:09 UTC Completed workflow item number 3, with status Completed
Mar 01, 2017 22:48:10 UTC Executing workflow item number 4
Mar 01, 2017 22:48:10 UTC Trigger context executeWorkFlowStep called
Mar 01, 2017 22:48:10 UTC Executing custom action GetMyDomain (custom_Get_VDC_POLICIES)
Mar 01, 2017 22:48:10 UTC Executing custom action GetMyDomain (custom_Get_VDC_POLICIES) for VM 44 (vm-SR188)
Mar 01, 2017 22:48:10 UTC Executing custom script for Get_VDC_POLICIES
Mar 01, 2017 22:48:10 UTC vdc networkPolicy = DallasProd
Mar 01, 2017 22:48:10 UTC vdc getUserActionsPolicy = My Application
Mar 01, 2017 22:48:10 UTC vdc getComputingPolicy = DallasProdCompute1
Mar 01, 2017 22:48:10 UTC vdc getStoragePolicy = DallasProd
Mar 01, 2017 22:48:10 UTC vdc getCostModel = Gold
Mar 01, 2017 22:48:10 UTC vdc getVdcDescription = null
Mar 01, 2017 22:48:10 UTC vdc getPrimaryDeployPolicy = DallasProd1
Mar 01, 2017 22:48:10 UTC Processing output: out1
Mar 01, 2017 22:48:10 UTC Task #4 (GetMyDomain (custom_Get_VDC_POLICIES)) completed successfully in 0 seconds
Mar 01, 2017 22:48:10 UTC Input/Output values for Task #4 (GetMyDomain (custom_Get_VDC_POLICIES)):
Mar 01, 2017 22:48:10 UTC [Mapped Input: VDC_ID = 2]
Mar 01, 2017 22:48:10 UTC [Output: out1 = DallasProd1]
Mar 01, 2017 22:48:10 UTC Completed workflow item number 4, with status Completed
Mar 01, 2017 22:48:16 UTC Executing workflow item number 5
Mar 01, 2017 22:48:16 UTC Trigger context executeWorkFlowStep called
Mar 01, 2017 22:48:16 UTC Executing custom action GetMyDomain (custom_Generic_Report)
Mar 01, 2017 22:48:16 UTC Executing custom action GetMyDomain (custom_Generic_Report) for VM 44 (vm-SR188)
Mar 01, 2017 22:48:16 UTC Executing custom script for Generic_Report
Mar 01, 2017 22:48:16 UTC -------------------------------------
Mar 01, 2017 22:48:16 UTC Iteration : 0
Mar 01, 2017 22:48:16 UTC -------------------------------------
Mar 01, 2017 22:48:16 UTC Col1 : 1
Mar 01, 2017 22:48:16 UTC Col2 : DallasProd1
Mar 01, 2017 22:48:16 UTC Col3 :
Mar 01, 2017 22:48:16 UTC Col4 : null
Mar 01, 2017 22:48:16 UTC Col5 : ${VMNAME}
Mar 01, 2017 22:48:16 UTC Col6 : ciscodemo.local
Mar 01, 2017 22:48:16 UTC Col7 : null
Mar 01, 2017 22:48:16 UTC Looking for SearchValue1...............: DallasProd1
Mar 01, 2017 22:48:16 UTC Comparing too...............: DallasProd1
Mar 01, 2017 22:48:16 UTC Found..............: ciscodemo.local
Mar 01, 2017 22:48:16 UTC Processing output: ReturnStatus
Mar 01, 2017 22:48:16 UTC Processing output: c1
Mar 01, 2017 22:48:16 UTC Processing output: c2
Mar 01, 2017 22:48:16 UTC Processing output: c3
Mar 01, 2017 22:48:16 UTC Processing output: c4
Mar 01, 2017 22:48:16 UTC output: c4 is not set
Mar 01, 2017 22:48:16 UTC Processing output: c5
Mar 01, 2017 22:48:16 UTC Processing output: c6
Mar 01, 2017 22:48:16 UTC Processing output: c7
Mar 01, 2017 22:48:16 UTC output: c7 is not set
Mar 01, 2017 22:48:16 UTC Task #5 (GetMyDomain (custom_Generic_Report)) completed successfully in 0 seconds
Mar 01, 2017 22:48:16 UTC Input/Output values for Task #5 (GetMyDomain (custom_Generic_Report)):
Mar 01, 2017 22:48:16 UTC [Local Input: ContextSelector = global_admin]
Mar 01, 2017 22:48:16 UTC [Local Input: NonGlobalContextSelector = ]
Mar 01, 2017 22:48:16 UTC [Local Input: ReportLabel = PolicyFeature.report.private.system.dep.config]
Mar 01, 2017 22:48:16 UTC [Local Input: Col1 = Policy ID]
Mar 01, 2017 22:48:16 UTC [Local Input: Col2 = Policy Name]
Mar 01, 2017 22:48:16 UTC [Local Input: Col3 = Policy Description]
Mar 01, 2017 22:48:16 UTC [Local Input: Col4 = Power ON?]
Mar 01, 2017 22:48:16 UTC [Local Input: Col5 = Host Name Template]
Mar 01, 2017 22:48:16 UTC [Local Input: Col6 = DNS Domain]
Mar 01, 2017 22:48:16 UTC [Local Input: Col7 = ]
Mar 01, 2017 22:48:16 UTC [Local Input: SearchColumn = Policy Name]
Mar 01, 2017 22:48:16 UTC [Mapped Input: SearchValue = DallasProd1]
Mar 01, 2017 22:48:16 UTC [Output: ReturnStatus = 0]
Mar 01, 2017 22:48:17 UTC [Output: c1 = 1]
Mar 01, 2017 22:48:17 UTC [Output: c2 = DallasProd1]
Mar 01, 2017 22:48:17 UTC [Output: c3 = ]
Mar 01, 2017 22:48:17 UTC [Output: c5 = ${VMNAME}]
Mar 01, 2017 22:48:17 UTC [Output: c6 = ciscodemo.local]
Mar 01, 2017 22:48:17 UTC Completed workflow item number 5, with status Completed
Mar 01, 2017 22:48:22 UTC Executing workflow item number 6
Mar 01, 2017 22:48:22 UTC Trigger context executeWorkFlowStep called
Mar 01, 2017 22:48:22 UTC Executing custom action GetMyDomain (custom_SR_LOG_FILE_ENTRY)
Mar 01, 2017 22:48:22 UTC Executing custom action GetMyDomain (custom_SR_LOG_FILE_ENTRY) for VM 44 (vm-SR188)
Mar 01, 2017 22:48:22 UTC Executing custom script for SR_LOG_FILE_ENTRY
Mar 01, 2017 22:48:22 UTC ciscodemo.local
Mar 01, 2017 22:48:22 UTC Task #6 (GetMyDomain (custom_SR_LOG_FILE_ENTRY)) completed successfully in 0 seconds
Mar 01, 2017 22:48:22 UTC Input/Output values for Task #6 (GetMyDomain (custom_SR_LOG_FILE_ENTRY)):
Mar 01, 2017 22:48:22 UTC [Mapped Input: Message = ciscodemo.local]
Mar 01, 2017 22:48:22 UTC [Mapped Input: Error_color = 2]
Mar 01, 2017 22:48:22 UTC Completed workflow item number 6, with status Completed
Mar 01, 2017 22:48:25 UTC Executing workflow item number 7
Mar 01, 2017 22:48:25 UTC Completed workflow item number 7, with status Completed
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: