Virtualization - listVirtualCenterCOEntitiesByServerID

Virtualization - listVirtualCenterCOEntitiesByServerID

Description :

This command lists all the VMware Virtual Center entities on the server specified by serverId. Virtual Center entities include:

  • ESX Hosts
  • ResourcePools
  • Clusters

Return type : String

Command Input :

Variable Name

Variable Type

Description

ServerId

Integer

The server ID of the Virtual Center server. This server must be managed by BMC Server Automation.

Example

The following example lists all the Virtual Center entities on a Virtual Center server.

Script


# Get the ID of the server by server name 

SERVER1_NAME="server1" 

SERVER1_ID=`blcli Server getServerIdByName $SERVER1_NAME` 

# List all the Virtual Center entities on this server 

blcli Virtualization listVirtualCenterCOEntitiesByServerID $SERVER1_ID 

 



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

Comments