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

[Xen-API] how to extract os-version details using python API.


  • To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: "Sane, Abhijeet" <Abhijeet_Sane@xxxxxxx>
  • Date: Tue, 20 Jul 2010 10:14:31 -0500
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Tue, 20 Jul 2010 08:14:40 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • Thread-index: AcsoHkEybE1wAe4vTMmKypUdBD8waQ==
  • Thread-topic: how to extract os-version details using python API.

Hi ,
I am trying to extract the Operating sysetm name and Version that I am 
installing on Citrix Xen Server as domU using Python API.

Using the xe command line I am able to get that 

Example.
---------------------------------------------
xe vm-param-get param-name=os-version uuid=e9a1db4e-bff5-0e76-d023-2836589e15d4

name: Red Hat Enterprise Linux Server release 5.5 (Tikanga); uname: 
2.6.18-194.el5xen; distro: rhel; major: 5; minor: 5
---------------------------------------------

I am finding difficulty in getting information about the metric in the 
documentation.
Can someone guide me how to extract the same using the python API. ? 

Regards
Abhijeet


_______________________________________________
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®.