pvc-vm-topo Command

Purpose

Lists the topology information for virtual machines.

Syntax

powervc-vm-topo [-h] [-u USER] [-ip POWERVC_IP] [-prj PROJECT] [-all | -vms [VMS ...]]

Description

The pvc-vm-topo command provides the topology information for virtual machines such as the details of hypervisor, virtual machine, host, and volume that is attached to the virtual machine.

Flags

Table 1. Flags
Item Description
-h or --help Displays help about the pvc-vm-topo command.
-u USER or --user USER Specifies the role of the admin user. The default value is None.
-ip POWERVC_IP or --powervc_ip POWERVC_IP Specifies the IP of the PowerVC system. The default value is localhost.
-prj PROJECT or --project PROJECT Specifies the project against which the report is needed. The default value is ibm-default.
-all or --all Displays the details of all the virtual machines. This option is mutually exclusive with the --vms option. The default value is True.
-vms VMS ... or --vms VMS ... Displays the details of a list of virtual machines. This option is mutually exclusive with the -all option. The default value is None.

Examples

  1. To display the details of a virtual machine, enter the following command:
    powervc-vm-topo --vms <virtual_machine>

    You can specify the virtual machine name or ID to fetch the details. You can also specify a list of virtual machines that are separated by a blank space