Virtualization - listVirtualGuestByServerNameandPowerState
Virtualization - listVirtualGuestByServerNameandPowerState
Description :
This command lists all the virtual guests that reside on a specified Virtual Center server, and that have a specified power state. The Virtual Center server is identified by its server name.
Set PowerStatus to one of the following values:
- VMware - Started, Stopped, Suspended
- Citrix - Halted, Paused, Running, Suspended
- Solaris - running, installed, configured
- IBM - Running, Not Activated, Open Firmware
- RHEV - Stopped, Running, Suspended
- HyperV - Stopped, Running, Suspended, Saved, Failed
Return type : String
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
Servername | String | The server name of the Virtual Center server. This server must be managed by BMC Server Automation. |
PowerStatus | String | The power status of the virtual guests you want to list. Can be either Started or Stopped. |
Example
The following example lists all started virtual guests on a Virtual Center server.
Script
SERVER1_NAME="server1"
blcli Virtualization listVirtualGuestByServerNameandPowerState $SERVER1_NAME Started
blcli Virtualization listVirtualGuestByServerNameandPowerState $SERVER1_NAME Started
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*