From 24bee20ce4196d45891925332a47a05aa5e40938 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 1 May 2009 11:27:52 +0100 Subject: Generated code for dmesg command. --- python/guestfs.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'python/guestfs.py') 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) + -- cgit