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

Re: [Xen-API] How to get Xen API performance metric names?



On 16/11/12 16:16, giri vara prasad nambari wrote:
> Hi Mike,
>  
> Thanks for the pointers.
>  
> Yes, I am using XAPI SDK for Java. Does that mean I need to use SDK API
> to get "network-name-label "?
>  
> If you have any sample code (or) references, could you point me?
>  
> Thanks for your time and help.

The best examples are here:

http://docs.vmd.citrix.com/XenServer/4.0.1/api/client-examples/python/index.html

They're in Python, but the ideas will be the same. The API docs are here:

http://docs.vmd.citrix.com/XenServer/6.1.0/1.0/en_gb/api/

Let us know if you have any specific questions.

Mike

>  
> Thank you,
> Giri
> 
> On Fri, Nov 16, 2012 at 9:37 AM, Mike McClurg <mike.mcclurg@xxxxxxxxxx
> <mailto:mike.mcclurg@xxxxxxxxxx>> wrote:
> 
>     On 14/11/12 17:05, giri vara prasad nambari wrote:
>     >     Hi Community,
>     >
>     >     I have posted this question on *citrix* forums and they
>     re-directed
>     >     me to xen.org <http://xen.org> <http://xen.org>. Could someone
>     please help me with
>     >     following question?
>     >
>     >     I have looked at following url to retrieve XenServer performance
>     >     metrics using HTTP
>     >
>     >     http://community.citrix.com/display/xs/Using+XenServer+RRDs
>     >
>     >     I am able to see valid entries in browser when I type in url.
>     >
>     >     The question I have here is
>     >
>     >     In XenClient I am seeing Network names as something like "Bond 0+1
>     >     Recieve" and "Bond 0+1 Send" etc.,
>     >     But in XML response they are showing as vif_0_tx and vif_0_tx. How
>     >     can I get above names (like Bond 0+1) instead of vif_0_tx?
>     >
>     >     Could someone please point me on how could I get "Bond 0+1" as
>     name
>     >     instead of vif_0_tx?
> 
>     "Bond 0+1" is the name-label of the network that the VIF is connected
>     to. From the data source name vif_0_tx, you can tell that this is the
>     VIF on the VM with device 0. So you can do 'xe vif-list vm-uuid=<blah>
>     device=0 params=network-name-label --minimal', which will then give you
>     "Bond 0+1".
> 
>     If you're using the XenAPI directly, you'll have to do a little more
>     work than the above xe command, but that should get you started.
> 
>     Mike
> 
>     >     Any help would be appreciated.
>     >
>     >     Thanks for your time and help.
>     >
>     >     Thank you,
>     >     Giri
>     >
>     >
> 
> 


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

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