Skip to content

Commit

Permalink
Provide an example how to retrieve the network, IP and MAC address of…
Browse files Browse the repository at this point in the history
… a virtual machine
  • Loading branch information
dnaeon committed Jan 14, 2015
1 parent ae5f9fc commit 49065d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ running on you could use the ``vm.host.get`` vPoller method:
$ vpoller-client --method vm.host.get --vsphere-host vc01.example.org \
--name vm01.example.org
The example below shows how to retrieve information about the network
that a Virtual Machine is using along with information about it's
IP address and MAC address:

.. code-block:: bash
$ vpoller-client --method vm.guest.net.get --vsphere-host vc01.example.org \
--name vm01.example.org --properties network,ipAddress,macAddress
Using the ``vm.process.get`` vPoller method we can get a list of all
processes running in a Virtual Machine. Note, that we need to supply a
username and password when using the ``vm.process.get`` method, which
Expand Down

0 comments on commit 49065d4

Please sign in to comment.