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-users

[Xen-users] howto use xenapi commands in xm shell

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] howto use xenapi commands in xm shell
From: 胡少龙 <sunofblack@xxxxxxxx>
Date: Wed, 18 Aug 2010 15:23:08 +0800 (CST)
Delivery-date: Wed, 18 Aug 2010 08:19:32 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.cn; s=s1024; t=1282116188; bh=GqbtlyOwUq0XqPZywiFECzm9ZFU9U05WpsekRZxWb1w=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ilObVyIiFrvxtRptKa7HmVVzybE8vBh4M+SKA3Z4t3mUGmTvl64sfw7ajlxSQc/qys+RkQKnbvFdYmudZJU5AfXCZcpMs6eOfdGmlaVxazZY19ptCRfXe4yyedRSZ5/HUBGEkafx+jTOjdPVwA+4Kl5aID0A5a+xNVoBowrrQtY=
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=IsfP32IwXlVaK27JfFjDOC0llm/Jou2Yw/EHuyl6OcfKzErRB0p6HfGUiZRJ1afC55mWMjaxYSkEpmSUiY+erTQONbqbTI7SeibXke0tN4D7rg/ZjfsAppPeg5usuM2UIgRuMkdC6clcGNOm6icnKd+qGGWRWDBQBu7IY8bKfJ8=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-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-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] howto use xenapi commands in xm shell, 胡少龙  <=