[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] newbie: get_guest_metrics result MESSAGE_METHOD_UNKNOWN



No it's just that the implementation of Guest Metrics is missing.

Akira Akira wrote:
Hi All,

Although I already searched the mailing list archives to try to find a solution, I could only find people reporting this error without a solution.

I am trying to get the guest metrics to monitor the guest for memory shortage, for example. So here is what I executed (in python):

*1)*
    session = XenAPI.Session(url)
    session.xenapi.login_with_password(username, password)
    vms = session.xenapi.VM.get_all_records()
    for vm in vms:
            g_metrics = session.xenapi.VM.get_guest_metrics(vm)


*2)*

    session = XenAPI.Session(url)
    session.xenapi.login_with_password(username, password)
    vms = session.xenapi.VM.get_all_records()
    for vm in vms:
            metrics = session.xenapi.VM.get_metrics(vm)
            g_metrics =
    session.xenapi.VM_guest_metrics.get_record(metrics)


And as a result I am getting the same following error for both codes:

    XenAPI.Failure: MESSAGE_METHOD_UNKNOWN


The error is always in the last line (the one in which I try to obtain a guest metrics and assign it to g_metrics).

I am referring to this page to use the Xen API: http://wiki.xensource.com/xenwiki/XenApi

The documentation I am using is: API Revision 1.1, Date: 16th August 2007. Is there a more recent documentation? Am I using the wrong documentation?

Thank you in advance.

                     Akira
------------------------------------------------------------------------

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.