本文件已封存並已停止維護。

Get VM Activity

更新日期: 2010年12月

適用於: System Center Service Manager 2010

This activity retrieves a list of one or more virtual machine IDs from a System Center Virtual Machine Manager (VMM) Library.

  • The Virtual Machine Manager console and Service Manager must be both installed on the same server.

  • Ensure that the Service Manager Workflow account has sufficient permissions to modify security groups in Active Directory Domain Services.

The Get VM activity uses the following input properties:

 

Display Name Internal Name Type Required Description

Parameter Set

ParameterSet

String

No; default is Connection.

Specifies a subset of parameters, organized for a particular purpose. For the Get VM activity, you can select one of the following parameter sets:

  • All: Search for all of the available virtual machines.

  • ID: Search for a virtual machine with a known ID.

  • Connection: Search for virtual machines connected to the Virtual Machine Manager (VMM) Server designated by the VMMServer property.

  • VMHostGroup: Search for virtual machines connected to the virtual machine host designated by the VM Host property.

Continue On Error

ContinueOnError

Boolean

No (default setting is True)

Determines whether the workflow should continue running if the activity fails.

Has Error

HasError

N/A

Specifies if the activity has an error set. (Read-only)

All

All

Boolean

No (default setting is True)

Available if the Parameter Set is All. If set to True, the Get VM activity returns a list of the virtual machine IDs of all of the available virtual machines.

ID

ID

String

Required if the Parameter Set is ID

Available if the Parameter Set is ID. If set to True, the Get VM activity returns a list of the virtual machine IDs of all of the virtual machines whose virtual machine IDs match all or part of the specified ID value.

Management Group

ManagementGroup

String

No

Specifies the management group in which this activity will run. Set to localhost. (Read-only)

Script Server

Target

String

Yes

Specifies the Domain Name System (DNS) name of the server that runs the Service Manager console. Do not use localhost.

Script Time Limit

TimeoutSeconds

Integer

No (default setting is 300 seconds)

Specifies the maximum number of seconds to allow for the activity to run.

VM Host

VMHost

String

Required if the Parameter Set is VMHostGroup

Available if the Parameter Set is VMHostGroup. If this parameter set is selected, the Get VM activity returns a list of the virtual machine IDs of all of the virtual machines running on the specified host.

VM Name

VMName

String

No

Specifies the name or part of a name of the virtual machine to search for. If the string is part of a name, the activity retrieves the IDs of all virtual machines that contain the string.

VMMServer

VMMServer

String

Yes

Specifies the name of the System Center Virtual Machine Manager (VMM) server that manages the virtual machines.

The Get VM activity generates the output described in the following table:

 

Display Name Internal Name Type Comments

VM IDs

VMIDList

Array of strings

Specifies the list of the IDs of virtual machines with names that match all or part of the VM Name string.

The Get VM activity uses the custom tracking service supplied by Service Manager to log errors and exceptions when the activity runs. The activity generates errors or exceptions as appropriate if any of the script properties cannot be resolved.

顯示: