pycmdCollector is a command line utility to dump all command line output to log files for further analysis. It requires a command list receipe using 'csv' format to run this tool.
Usage: pycmdCollector <command recipe>
<command list recipe format>: Use ',' to separate the {command} and {logfile}
command1, logname1
command2, logname2
...,...
Ex:
ls -l, ls.log
myapp -A1 -t -s -a0, myapp0.log
$ python pycmdCollector.py linuxcmd.csv
COMMAND LINE LOG COLLECTION OOL
Author: Rick Lin / VERSION: 0.0.1
----------------------------------
Input command file: [linuxcmd.txt]
Dumping (dmesg) to dmesg.log
Dumping (time) to time.log
Dumping (ls -l) to ls.log
$
It will generate a zip with all above command list.
Ex: 2014-11-05-130344_cmdline_logs.zip
OR
Standalone mode: (Linux only)
$ ./pycmdLogger linuxcmd.txt
TODO:
- Convert to Standalone executable file on both Windows and Linux
- Parser
- Viewer
- GUI interface
- Windows: py2exe
- Linux: Freeze Reference Link: http://docs.python-guide.org/en/latest/shipping/freezing/
####v0.0.2
- Supports PyWin32 to dump Windows System Event Log
####v0.0.1
- Supports Windows and Linux log dump
- Tests on Windows 7 and RHEL6.3 x86-64
- Package.sh is a shell script to bundle the python script into one standalone file(For Linux only)