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 - listVirtualEntitiesByEntityManagerServerNameAndEntityType_1


Virtualization - listVirtualEntitiesByEntityManagerServerNameAndEntityType

Description :

This command lists all the virtual entities that are on a given server, and are of the type specified by EntityType.

To get a list of valid EntityType values, use the listVirtualEntityTypes command.

Return type : String

Command Input :

Variable Name

Variable Type

Description

ServerName

String

Name of a server that is being managed by BMC Server Automation.

EntityType

String

The type of virtual center entity you want to list.

ShowHeadersFlag

Boolean

True to show a header row in the output, false otherwise.

Example

The following example lists all the VMware virtual machines on a given server.

Script


SERVER1_NAME="server1"

blcli Virtualization listVirtualEntitiesByEntityManagerServerNameAndEntityType $SERVER1_NAME VMwareVirtualMachine true

Name::Entity Key

VM1::1,VMwareVirtualMachine,vm-179

VM2::1,VMwareVirtualMachine,vm-25



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*