VMCaptureJob - importVM

VMCaptureJob - importVM

Description :

This command creates and runs a VM Import Job. This job:

-- Assumes that there is already an OVF file on a provisioning datastore. (The OVF file may be there as a result of you running a VM Capture Job. For more information, see the captureAndStageVM command.

-- Takes the information from the OVF file and uses it to create template(s) on the target Virtual Center server(s). -- After it creates the templates, it creates corresponding Virtual Guest Packages (VGPs) in the BMC Server Automation system.

As input, this command requires an input file that contains specifications for the job, expressed in web services REST syntax. For information on how to create this file, see the introductory chapter, OVF provisioning concepts. This command returns a handle to the VM Import Job job run.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Parent group for this job.

jobName

String

Name of the job.

inputFile

String

Input file path.

Example

The following example creates and runs a VM Import Job.

Script

JOB_GROUP=/VMImportJobs 

JOB_NAME=ImportVM 

# The input file contains the following keys: 

PathToOVF= Path to the .ovf file, relative to the PXE Datastore location. 

Target={TargetURL},{DatastoreURL},{TargetType} The input file can have multiple 'Target' statements. 

ProvisionDataStore= Provisioning datastore instance for intemediate storage of the .ovf file. (for example, Class://SystemObject/DataStore/Pxe Datastore/localhost). 

JOB_KEY=`blcli VMCaptureJob importVM $JOB_GROUP $JOB_NAME c:/myInputFile.txt' 



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

Comments