Searchs and aggregates Siebel component crashes information into a nice report.
Project description
siebel-crash-report
Python project that searchs and aggregates Siebel component crashes information into a nice report.
Features
Automates all required steps to retrieve information of a Siebel server component crash to send the report to Oracle support.
Information is searched and retrieve from the following sources:
- the memory dump (
core.dump
files) itself using GDB. - FDR files with
sarmanalyzer
. - Siebel enterprise log files.
- correlate information from the FDR with the enterprise log file.
- a summary JSON report.
The CSV (from sarmanalyzer
) and the GDB output as text are created as
necessary in the directory defined by the crash_dir
entry in the
crash_reporter.ini
configuration file, together with the summary JSON report
and a copy of the crash.txt
.
All the information (but the CSV and gdb
output) is printed to STDOUT
, so
it's to run it together in a cron job and pipe it to mail
program.
Here is an example of the JSON report (two crashes identified):
{
18192 : {
'core' : {
'last_mod' : '2016-09-08 17:46:08',
'executable' : 'siebprocmw',
'size' : 211382272,
'generated_by' : 'SIGABRT',
'filename' : 'core.18192'
},
'fdr' : {
'last_mod' : '2016-09-08 17:46:07',
'size' : 5000032,
'filename' : 'T201609081518_P018192.fdr'
},
'thread' : '-247841904'
},
28019 : {
'core' : {
'last_mod' : '2016-09-09 22:40:22',
'executable' : 'siebmtshmw',
'size' : 356610048,
'generated_by' : 'SIGABRT',
'filename' : 'core.28019'
},
'fdr' : {
'last_mod' : '2016-09-09 22:40:22',
'size' : 5000032,
'filename' : 'T201609092237_P028019.fdr'
},
'thread' : '-171263680'
}
}
The core and FDR files might be removed (see the configuration file) right after the analysis is complete.
This script will work on Linux only. It is expected that the gdb
program (to
extract the core dumps backtrace) and the iniparse
(available as RPM package
on RedHat, CentOS and Oracle Enterprise Linux) Python module are installed.
The script crash_monitor
has also an on-line documentation. You can check it
with:
$ pydoc siebel.maintenance.crash
To generate HTML documentation for this module issue the command:
$ pydoc -w siebel.maintenance.crash
How to use
Requirements
- Python 2.X or 3.x: checkout Travis CI for up to date information about the support Python versions.
- Siebel Server binaries and configuration in place.
- Linux (all setup is specific to Linux).
- GNU GDB.
Install
You should be able to install this program with pip
:
$ pip install siebel-crash-report
Then you will need to configure the crash_reporter
program and finally run it
against your Siebel Enterprise.
Configuration
You must have a YAML configuration file located at your home directory as
$HOME/.crash_reporter.yaml
.
You can see a sample configuration file at the website project.
Further information can be checked on the module documentation:
$ pydoc siebel.maintenance.crash.readConfig
Development
If you want to get involved with this project development, here are some very basic details to start.
Requirements
The same for running the program.
Running tests
In order to run tests with pytest
, setup the PYTHONPATH
environment
variable first:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for siebel-crash-report-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf75a43706153c056e3b0ef826a295d4e35616f71a0d7c9c8285d1398a2c32c9 |
|
MD5 | 6a9f6820265bfe3d20db5336978c78de |
|
BLAKE2b-256 | e3ad86d3c8a9096b14576b03802af121ed83abfc9008c18adabc9ade6017846a |
Hashes for siebel_crash_report-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ceaa76c85838f4c3b034add91f7f5f3b5034cc57d346570ea180740f49c189 |
|
MD5 | a22fd11971cbfa742c3f11560dab1cea |
|
BLAKE2b-256 | 4113e7480c827d897b74cf03d9719acca317498b0593396cf339150b73c98c79 |