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

[Xen-API] howto use xenapi command in xm shell


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: èåé <sunofblack@xxxxxxxx>
  • Date: Wed, 18 Aug 2010 15:22:10 +0800 (CST)
  • Delivery-date: Wed, 18 Aug 2010 00:22:50 -0700
  • 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=;
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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

 


Rackspace

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