From 49065d4c84ffe4f38e4979fdd868b9a3d2d9cc50 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Wed, 14 Jan 2015 16:36:47 +0200 Subject: [PATCH] Provide an example how to retrieve the network, IP and MAC address of a virtual machine --- docs/examples.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/examples.rst b/docs/examples.rst index fe14aa0..7aa0355 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -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