Description of problem: journal should contain basic HW profile of a guest. Maybe we can also print something in the rlJournalPrintText. Version-Release number of selected component (if applicable): beaker-lib-0.4.64-0.el5.noarch Expected results: I'm going to use: CPU info: # dmidecode --type 4 RAM info: # dmidecode --type 17 HDD info: # df --portability # swapon -s # maybe Other possibility is to use `lshal` which depends on HAL. Any comments welcome.
Hmm, no, will use something like this: CPU info: # grep '^model name' /proc/cpuinfo RAM info: # free -m | grep '^Mem' | sed 's/^Mem: \+\([0-9]\+\) \+.*/\1/' HDD info (will summarize this): # df -k -P --local --exclude-type=tmpfs | grep '^/'
Created attachment 400191 [details] propposed patch
Created attachment 434624 [details] New version of the patch including option for journalling.py and tests
This is still not commited, I believe?
Yep, I haven't commited it.
I've tried to apply this, but it won't apply anymore. Removing the 'Patch' keyword. I'll try to include this in the journal overhaul effort.
Created attachment 513602 [details] Option for journalling.py and tests to add HW info to the journal
Re-created against current git.
I've tested this a bit, seems good. OK to commit.
I've pushed it. http://git.fedorahosted.org/git?p=beakerlib.git;a=commit;h=9d1aff8d3a4cb7a3cee1b3fb64d42ddd6baeb72a
beakerlib-1.6-1 is already in fedora