WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] how to extract os-version details using python API.
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] how to extract os-version details using python API., Sane, Abhijeet <=