Virtualization - listVirtualEntitiesByEntityManagerServerIdAndEntityType

Virtualization - listVirtualEntitiesByEntityManagerServerIdAndEntityType

Description :

This command lists all the virtual entities that are on a given server, and are of the type specified by EntityType. This command is deprecated. To list virtual entities, use the listVirtualEntitiesByEntityManagerServerIdAndEntityType command.

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.

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 

Name::Entity Key 

VM1::1,VMwareVirtualMachine,vm-179 

VM2::1,VMwareVirtualMachine,vm-25 



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

Comments