search for: journal_open

Displaying 6 results from an estimated 6 matches for "journal_open".

2014 Jun 14
3
Script to read systemd journal of a guest to find its IP address
...ot;/dev/fedora/root" import os import sys import re import guestfs g = guestfs.GuestFS () g.add_drive (image, format='qcow2') g.launch () #print g.list_partitions() # Set trace #g.set_trace (1) g.mount_options ("ro", root_filesystem, "/") # Open the journal g.journal_open ("/var/log/journal") # Loop over the journal to find a specific string count = 0 prog = re.compile("dhclient.*bound") while g.journal_next(): count += 1 output = g.journal_get() #print output flag = 0 for i in output: if i['attrname']==&quot...
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in: https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html Rich.
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...ng, "uuid")], []; tests = [ InitBasicFS, Always, TestResultString ( [["set_uuid"; "/dev/sda1"; stable_uuid]; @@ -8635,7 +8635,7 @@ To read the UUID on a filesystem, call C<guestfs_vfs_uuid>." }; { defaults with name = "journal_open"; added = (1, 23, 11); - style = RErr, [Pathname "directory"], []; + style = RErr, [String (Pathname, "directory")], []; optional = Some "journal"; test_excuse = "tests in tests/journal subdirectory"; shortdesc = "open the syste...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator. Rich.
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of local disk. Rich.
2017 Feb 18
8
[PATCH 0/6] generator: Split up generator/actions.ml
Split up the huge generator/actions.ml into several smaller files. Rich.