取得 VM 狀態活動Get VM Status Activity

重要

此版本的 Orchestrator 已達終止支援,建議您 升級至 Orchestrator 2019This version of Orchestrator has reached the end of support, we recommend you to upgrade to Orchestrator 2019.

「取得 VM 狀態」活動用於 runbook 中,以抓取虛擬機器的狀態和其他相關資訊。The Get VM Status activity is used in a runbook to retrieve the state and other related information about a virtual machine. 例如,這會讓 runbook 取得虛擬機器的目前狀態,以確保在執行備份之前已正確關閉。This, for example, enables the runbook to retrieve the current status of a virtual machine to ensure that is has been properly shut down before performing a backup.

下表列出此活動的必要和選擇性內容以及已發佈資料。The following tables list the required and optional properties and published data for this activity.

此活動會將來自必要和選擇性內容的所有資料,發佈成已發佈資料。The activity publishes all of the data from the required and optional properties into published data. 系統會根據您在定義活動時選取的類別來產生其他已發佈資料。Additional published data is generated based on the class that you select when you define the activity.

取得 VM 狀態活動的必要屬性Get VM Status Activity Required Properties

元素Element 描述Description 有效的值Valid Values 查閱Look up
VM 路徑VM Path 要取得其狀態的虛擬機器路徑。The path of the virtual machine to retrieve the status for. StringString Yes

取得 VM 狀態活動選擇性屬性Get VM Status Activity Optional Properties

未提供此活動的選擇性屬性。No optional properties are provided for this activity.

取得 VM 狀態活動已發佈資料Get VM Status Activity Published Data

名稱Name 描述Description 實值類型Value Type
CPU 使用率CPU Usage 虛擬機器目前的 CPU 使用量The current CPU usage of the virtual machine 整數Integer
電腦名稱Computer Name 指派給客體作業系統的電腦名稱稱。The computer name assigned to the guest operating system. StringString
磁片容量 (MB) Disk Capacity(MB) 虛擬磁片的大小(以 mb 為單位)。The size of the virtual disk in megabytes. 整數Integer
IP 位址IP Address 虛擬機器的主要 IP 位址。The primary IP address of the virtual machine. StringString
記憶體大小 (MB) Memory Size (MB) 指派給虛擬機器的記憶體數量(以 mb 為單位)。The amount of memory assigned to the virtual machine in megabytes. 整數Integer
名稱Name 虛擬機器的名稱。The name of the virtual machine. StringString
網路清單Network List 此虛擬機器所連線的網路清單。The list of networks that this virtual machine is connected to. StringString
CPU 數目Number of CPU 指派給此虛擬機器的 Cpu 數目。The number of CPUs that are assigned to this virtual machine. 整數Integer
實體路徑Physical Path 可以在檔案系統上找到虛擬機器組態檔案的路徑。The path on the file system where the virtual machine configuration file can be found. StringString
電源狀態Power State 虛擬機器目前的電源狀態。The current power state of the virtual machine. StringString
VM 資料夾VM Folder 包含此虛擬機器的 vCenter 受管理資料夾。The vCenter managed folder containing this virtual machine. StringString
VM 作業系統的完整名稱VM OS Full Name 客體作業系統的完整名稱。The full name of the guest operating system. StringString
VM 路徑VM Path VCenter server 上虛擬機器的完整路徑。The full path of the virtual machine on the vCenter server. StringString
VM UUIDVM UUID VCenter server 所指派之虛擬機器的 UUID。The UUID of the virtual machine as assigned by the vCenter server. StringString

設定取得 VM 狀態活動Configuring the Get VM Status Activity

下列程式說明設定「取得 VM 狀態」活動所需的步驟。The following procedure describes the steps required to configure a Get VM Status activity.

設定取得 VM 狀態活動To configure the Get VM Status Activity

  1. 在 [ 活動 ] 窗格中,將 [ 取得 VM 狀態 ] 活動拖曳至使用中的 runbook。From the Activities pane, drag a Get VM Status activity to the active runbook.

  2. 按兩下 [ 取得 VM 狀態 ] 活動圖示。Double-click the Get VM Status activity icon. [ 屬性 ] 對話方塊隨即開啟。The Properties dialog box opens.

  3. 在 [ 屬性 ] 索引標籤中設定設定,如下所示:Configure the settings in the Properties tab as follows:

    1. 在 [設定] 區段中,按一下省略號按鈕 (] **) **,然後選取您要用於此活動 VMware vSphere 伺服器連線。In the Configuration section, click the ellipsis button (...), and then select the VMware vSphere server connection that you want to use for this activity. 按一下 [確定]。Click OK.
    2. 在 [ 屬性 ] 區段中,輸入每個必要屬性的值和適用的選擇性屬性。In the Properties section, enter a value for each of the required properties and the applicable optional properties. 如果屬性已啟用查閱功能,您可以按一下文字方塊旁的省略號 ** ( ... ) ** 按鈕,以流覽值。If the property is Lookup-enabled, you can click the ellipsis (...) button next to the text box to browse for a value. 您也可以使用已發佈資料,從工作流程中前一個活動的資料輸出中,自動填入屬性的值。You can also use published data to automatically populate the value of the property from the data output by a previous activity in the workflow.
  4. 按一下 [完成] 。Click Finish.