diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2010-10-27 18:03:01 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2010-11-17 09:51:07 -0200 |
commit | 287eefa4892a303f2cccd1a305ec381dfc932c27 (patch) | |
tree | 00a8f71ebb3ed3819332da165755406052e9aaad /QMP | |
parent | dd013882488834f4ecfffff830fd8cb706661ae0 (diff) | |
download | qemu-287eefa4892a303f2cccd1a305ec381dfc932c27.tar.gz qemu-287eefa4892a303f2cccd1a305ec381dfc932c27.tar.bz2 qemu-287eefa4892a303f2cccd1a305ec381dfc932c27.zip |
QMP: Drop vm-info example script
It's broken and not really useful, let's just drop it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'QMP')
-rw-r--r-- | QMP/README | 5 | ||||
-rwxr-xr-x | QMP/vm-info | 33 |
2 files changed, 1 insertions, 37 deletions
diff --git a/QMP/README b/QMP/README index 80503f2d7a..c95a08c234 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 be5b03843c..0000000000 --- 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 <lcapitulino@redhat.com> - -import qmp -from sys import argv,exit - -def main(): - if len(argv) != 2: - print 'vm-info <unix-socket>' - 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() |