Obtain Virtual Container Host Configuration Information

You can obtain information about the configuration of a virtual container host (VCH) by using the vic-machine inspect config command. The inspect config command provides details of the options with which the VCH was deployed with vic-machine create or subsequently reconfigured with vic-machine configure.

In addition to the options described in Common vic-machine Options, the inspect config command only includes one option, --format, the value of which can be either verbose or raw.

  • verbose: Provides an easily readable list of the options with which the VCH was deployed. If you do not specify --format, config provides verbose output by default.
  • raw: Provides the options with which the VCH was deployed in command line option format. You can copy or pipe the output into a vic-machine create command, to create an identical VCH.

Verbose Example

The following example obtains the configuration of a VCH by using its VCH ID. It does not specify --format, so the command provides verbose output.

$ vic-machine-operating_system inspect config
    --target 'Administrator@vsphere.local':password@vcenter_server_address
    --thumbprint certificate_thumbprint
    --id vch_id

Output

By default, the vic-machine inspect config command lists the options with which the VCH was deployed in the easily readable verbose format.

Target VCH created with the following options:

        --target=vcenter_server_address
        --thumbprint=certificate_thumbprint
        --name=vch1
        --compute-resource=/datacenter_name/host/vcenter_server_address/Resources
        --ops-user=Administrator@vsphere.local
        --image-store=ds://datastore1
        --volume-store=ds://datastore1/volumes:default
        --volume-store=ds://datastore1/volumes:vol1
        --bridge-network=vic-bridge
        --public-network=vic-public
        --memory=1024
        --cpu=1024

In addition to the minimum required vic-machine create options, the VCH in this example was deployed with two volume stores, named default and vol1, a specific public network, and constraints on memory and cpu usage. Also, because the VCH was not deployed with the --ops-user option, config lists --ops-user as Administrator@vsphere.local, which is the same user account as the one that was used to deploy the VCH.

Raw Example

The following example specifies the --format raw option.

$ vic-machine-operating_system inspect config
    --target 'Administrator@vsphere.local':password@vcenter_server_address
    --thumbprint certificate_thumbprint
    --id vch_id 
    --format raw

Output

The vic-machine inspect config command lists the options with which the VCH was deployed in command line format.

--target=vcenter_server_address --thumbprint=certificate_thumbprint --name=vch1 --compute-resource=/datacenter_name/host/vcenter_server_address/Resources --ops-user=Administrator@vsphere.local --image-store=ds://datastore1 --volume-store=ds://datastore1%5Cvolumes%5Ctlsverify:default --volume-store=ds://datastore1%5Cvolumes%5Cconfigtest:vol1 --bridge-network=vic-bridge --public-network=vic-public --memory=1024 --cpu=1024

results matching ""

    No results matching ""