summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-05-01 11:27:52 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-05-01 11:27:52 +0100
commit24bee20ce4196d45891925332a47a05aa5e40938 (patch)
tree434b56343dde38ae0c877cab236ada753e2f8549 /python/guestfs.py
parent8c60f5c681b5d7cf90bc798fcaf94cd4e242e27f (diff)
downloadlibguestfs-24bee20ce4196d45891925332a47a05aa5e40938.tar.gz
libguestfs-24bee20ce4196d45891925332a47a05aa5e40938.tar.xz
libguestfs-24bee20ce4196d45891925332a47a05aa5e40938.zip
Generated code for dmesg command.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py
index 6c425bc2..e2989223 100644
--- a/python/guestfs.py
+++ b/python/guestfs.py
@@ -1221,3 +1221,15 @@ class GuestFS:
"""
return libguestfsmod.drop_caches (self._o, whattodrop)
+ def dmesg (self):
+ u"""This returns the kernel messages ("dmesg" output) from
+ the guest kernel. This is sometimes useful for extended
+ debugging of problems.
+
+ Another way to get the same information is to enable
+ verbose messages with "g.set_verbose" or by setting the
+ environment variable "LIBGUESTFS_DEBUG=1" before running
+ the program.
+ """
+ return libguestfsmod.dmesg (self._o)
+