Virtualization - snapshotVirtualGuest

Virtualization - snapshotVirtualGuest

Description :

This command snapshots a virtual guest on the hypervisor, and stores the snapshot with the virtual guest's disk files. This is only supported for Citrix,VMware, and RHEV. The memory snapshot option is not supported by this command.

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.

This command returns a string indicating whether or not the snapshot completed correctly.

Return type : String

Command Input :

Variable Name

Variable Type

Description

virtualEntityKey

String

Virtual guest key for the virtual guest you want to snapshot.

snapshotName

String

Name of the guest snapshot

Example

The following example shows how to snapshot a virtual guest. Note the use of double quotes around $VIRT_ENTITY_KEY.

Script


SNAPSHOT_NAME="snap1" 

VIRTUAL_GUEST1_NAME="vm-w23-mar111" 

VIRT_ENTITY_KEY=`blcli Virtualization  getVirtualGuestKeyByServerName $VIRTUAL_GUEST1_NAME` 

blcli Virtualization snapshotVirtualGuest "$VIRT_ENTITY_KEY" "$SNAPSHOT_NAME" 



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

Comments