search for: journal_next

Displaying 4 results from an estimated 4 matches for "journal_next".

2014 Jun 14
3
Script to read systemd journal of a guest to find its IP address
...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']=="MESSAGE" and i['attrval'].startswith("bound"): print i['attrval'].split()[2] flag = 1 break...
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.
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.