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] howto use xenapi command in xm shell

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] howto use xenapi command in xm shell
From: 胡少龙 <sunofblack@xxxxxxxx>
Date: Wed, 18 Aug 2010 15:22:10 +0800 (CST)
Delivery-date: Wed, 18 Aug 2010 00:22:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.cn; s=s1024; t=1282116130; bh=l0C9Yq1EXmkm8pEphu4JqGxdIDMWzVQa1fuKY+vy87E=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=wIOLSF4ccEDldH8zJD8O77F07JAYbzFic8pPq/IBm8qSmQlLFNguP8vDVSfzd1fnIRB9Si+hqjiX+BTUXGn2UD/0x95dcP/CVJQgbVGNN6bZpLhEaV4VUmHq5rnx2SkAns3+yuw2u/z5PjIijJ2TNbDWTdPj/LCwYzVz1YOTwjo=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.cn; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=IvL4FAIvO3gctFohusTcj0BhLRwQ/FOA1u8pUAoVdrYWkdldJmUvQCdwjoFXESezTrNwIdj2GPWf0WUdVbjtNPZViaOAsn5KqtxBbtlcGSWSfS/ZYQxlpoowevV6Dm47FfpeE6FRcljFhhz8T9NQbpYasUURWoxZ7O/7qj6PaIU=;
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
Hi,
    I tried to use xenapi commands in xm shell, like this:

# xm shell
The Xen Master. Type "help" for a list of functions.
xm> session.get_all
[’77900a47-c611-8450-28bc-acabab1f8af9’]
xm> session.get_this_host 77900a47-c611-8450-28bc-acabab1f8af9
’a86612fa-85b8-ea19-aae7-e60f124d4cb5’
xm> host.get_resident_VMs a86612fa-85b8-ea19-aae7-e60f124d4cb5
[’00000000-0000-0000-0000-000000000000’]
xm> VM.get_name_
VM.get_name_description   VM.get_name_label
xm> VM.get_name_label 00000000-0000-0000-0000-000000000000
’Domain-0’

    But, when i use session.get_all, it came out *** Unknown command: session.get_all, what should i do? Thanks.

Shawn Hu


 
_______________________________________________
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] howto use xenapi command in xm shell, 胡少龙  <=