From Yaniv Bronhaim <ybron...@redhat.com>:

Yaniv Bronhaim has submitted this change and it was merged.

Change subject: vdsm client: add vdsm-client script
......................................................................


vdsm client: add vdsm-client script

vdsm API can be accessed with vdsm-client script. This is a
wrapper for vdsm client module.

The script has been added to static/usr/bin directory,
and it is installed in /usr/bin/ directory.

Invoking vdsm API:

    # vdsm-client Host getVMList
    ['b3f6fa00-b315-4ad4-8108-f73da817b5c5']

Invoking methods with simple parameters:

    # vdsm-client VM getStats vmID=b3f6fa00-b315-4ad4-8108-f73da817b5c5
    ...

For invokinng methods with many or complex parameters, you can read the
parameters from a file:

    # vdsm-client StorageDomain activate -f sd-activate
    ...

    where sd-activate file content is:
    {
        "storagedomainID": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
        "storagepoolID": "b3f6fa00-b315-4ad4-8108-f73da817b5c5"
    }

It is also possible to read parameters from standard input, creating
complex parameters interactively:

    # vdsm-client StorageDomain activate -f -
    {
        "storagedomainID": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
        "storagepoolID": "b3f6fa00-b315-4ad4-8108-f73da817b5c5"
    }
    (Press Ctrl + D to finish)

Change-Id: I6399625a297ea6b9aa55ea72a129bd36b8a1080f
Signed-off-by: Irit Goihman <igoih...@redhat.com>
Bug-Url: https://bugzilla.redhat.com/1410224
---
M static/Makefile.am
A static/usr/bin/vdsm-client
M vdsm.spec.in
3 files changed, 29 insertions(+), 0 deletions(-)

Approvals:
  Yaniv Bronhaim: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Irit Goihman: Verified



-- 
To view, visit https://gerrit.ovirt.org/69571
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6399625a297ea6b9aa55ea72a129bd36b8a1080f
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-4.1
Gerrit-Owner: Irit Goihman <igoih...@redhat.com>
Gerrit-Reviewer: Irit Goihman <igoih...@redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsof...@redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczew...@gmail.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com>
Gerrit-Reviewer: gerrit-hooks <automat...@ovirt.org>
_______________________________________________
vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org
To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org

Reply via email to