Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Virtualization - getVirtualGuestPowerStatus

Virtualization - getVirtualGuestPowerStatus

Description :

This command returns the power status of a virtual guest.

To get the virtualEntityKey, use the getVirtualGuestKeyByServerName command. The virtualEntityKey contains spaces. Therefore, you need to enclose this key in double quotes each time you use it.

Return type : String

Command Input :

Variable Name

Variable Type

Description

virtualEntityKey

String

Virtual guest key for the virtual guest you want to work with.

Example

The following example shows how to get a virtual guest's power status. Note the use of double quotes around $VIRT_ENTITY_KEY.

Script


VIRTUAL_GUEST1_NAME="vm-w23-mar111" 

VIRT_ENTITY_KEY=`blcli Virtualization  getVirtualGuestKeyByServerName $VIRTUAL_GUEST1_NAME` 

blcli Virtualization getVirtualGuestPowerStatus "$VIRT_ENTITY_KEY" 



Was this page helpful? Yes No Submitting... Thank you

Comments