From patchwork Fri Oct 29 14:24:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 69596 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB2ECB70DC for ; Sat, 30 Oct 2010 01:36:18 +1100 (EST) Received: from localhost ([127.0.0.1]:48698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBq3z-0001Q4-Ar for incoming@patchwork.ozlabs.org; Fri, 29 Oct 2010 10:36:15 -0400 Received: from [140.186.70.92] (port=59313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBpsc-0002Jm-Qn for qemu-devel@nongnu.org; Fri, 29 Oct 2010 10:24:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBpsb-0005qp-Mj for qemu-devel@nongnu.org; Fri, 29 Oct 2010 10:24:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBpsb-0005qd-GH for qemu-devel@nongnu.org; Fri, 29 Oct 2010 10:24:29 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9TEOSgS005403 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Oct 2010 10:24:29 -0400 Received: from localhost (ovpn-113-85.phx2.redhat.com [10.3.113.85]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o9TEORXt011725; Fri, 29 Oct 2010 10:24:28 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Fri, 29 Oct 2010 12:24:17 -0200 Message-Id: <1288362257-31091-4-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1288362257-31091-1-git-send-email-lcapitulino@redhat.com> References: <1288362257-31091-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: armbru@redhat.com Subject: [Qemu-devel] [PATCH 3/3] QMP: Drop vm-info example script X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It's broken and not really useful, let's just drop it. Signed-off-by: Luiz Capitulino --- QMP/README | 5 +---- QMP/vm-info | 33 --------------------------------- 2 files changed, 1 insertions(+), 37 deletions(-) delete mode 100755 QMP/vm-info diff --git a/QMP/README b/QMP/README index 80503f2..c95a08c 100644 --- a/QMP/README +++ b/QMP/README @@ -19,10 +19,7 @@ o qmp-spec.txt QEMU Monitor Protocol current specification o qmp-commands.txt QMP supported commands (auto-generated at build-time) o qmp-events.txt List of available asynchronous events -There are also two simple Python scripts available: - -o qmp-shell A shell -o vm-info Show some information about the Virtual Machine +There is also a simple Python script called 'qmp-shell' available. IMPORTANT: It's strongly recommended to read the 'Stability Considerations' section in the qmp-commands.txt file before making any serious use of QMP. diff --git a/QMP/vm-info b/QMP/vm-info deleted file mode 100755 index be5b038..0000000 --- a/QMP/vm-info +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/python -# -# Print Virtual Machine information -# -# Usage: -# -# Start QEMU with: -# -# $ qemu [...] -monitor control,unix:./qmp,server -# -# Run vm-info: -# -# $ vm-info ./qmp -# -# Luiz Capitulino - -import qmp -from sys import argv,exit - -def main(): - if len(argv) != 2: - print 'vm-info ' - exit(1) - - qemu = qmp.QEMUMonitorProtocol(argv[1]) - qemu.connect() - qemu.send("qmp_capabilities") - - for cmd in [ 'version', 'kvm', 'status', 'uuid', 'balloon' ]: - print cmd + ': ' + str(qemu.send('query-' + cmd)) - -if __name__ == '__main__': - main()