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

Virtualization - listVirtualEntitiesByEntityManagerServerIdAndEntityType

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

ServerId

Integer

ID 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


# Get the ID of the server by server name 

SERVER1_NAME="server1" 

SERVER1_ID=`blcli Server getServerIdByName $SERVER1_NAME` 

# List all the VMware virtual machines on the server 

blcli Virtualization listVirtualEntitiesByEntityManagerServerIdAndEntityType $SERVER1_ID VMwareVirtualMachine true 

Name::Entity Key 

VM1::1,VMwareVirtualMachine,vm-179 

VM2::1,VMwareVirtualMachine,vm-25 



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

Comments