summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Specify plugins to be invoked for chekstop errorMarri Devender Rao2019-01-309-9/+9
| | | | | | | | | | Set the config value for the scripts that need to be invoked during dump collection for checkstop error. Checkstop dump enum type has value 4. Change-Id: Ic75fa0f800ed459b8e493b191eec18f144664655 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Refactor to pass errors to watch through config YAMLMarri Devender Rao2019-01-222-1/+9
| | | | | | | | | | | Add errors to watch for through error YAML file Add support for checkstop error type Tested: Generating dumps for elog, core, checkstop type errors. Change-Id: Idd00ace2e3d0c472a74ec142e6d150e55e843a6f Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Add phosphor-hostlogger plugin to dreportArtem Senichev2018-11-141-0/+19
| | | | | | | | | | | | | phosphor-hostlogger project stores host's console output data, such as boot logs or Linux kernel messages printed to the system console. https://github.com/openbmc/phosphor-hostlogger Tested: Run dreport inside the BMC console, the result dump archive must contains host console logs. Change-Id: Icc45888a43b42de78c93aa0bc0ba7a295f0a76e3 Signed-off-by: Artem Senichev <artemsen@gmail.com> Tested-by: Artem Senichev <artemsen@gmail.com>
* Spelling fixesGunnar Mills2018-04-081-1/+1
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: I192b40fcab98b64e39b3100d41ea025ca280d842 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* dreport: Added altfwprintenv pluginJayanth Othayoth2018-02-061-0/+21
| | | | | | | | | | Plugin used for collecting alt flash U-boot environment variables. Resolves openbmc/openbmc#2862 Change-Id: Ife6eec8e85640e1933771cd149c49f1579430473 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added fwprintenv pluginJayanth Othayoth2018-02-061-0/+21
| | | | | | | | | | Plugin used for collecting primary flash U-boot environment variables. Resolves partially openbmc/openbmc#2862 Change-Id: I9cffd936575311a39d8006b84a612f0223158fbb Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Collect journal log in case PID is not presentJayanth Othayoth2018-01-252-3/+12
| | | | | | | | | | | | | | | dreport uses PID information from the elog or core file to collect PID based journal logs as part the BMC dump. Existing dreport skips journal log collection in case PID information is missing in the elog or core file. Proposed changes help to collect the last 500 journal entries when the PID is not present in the elog entry or core file. Resolves openbmc/openbmc#2716 Change-Id: Ib3d8dfea64ea17f4b020b429267294c36530848b Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added ip link pluginJayanth Othayoth2017-11-101-0/+13
| | | | | | | Resolves openbmc/openbmc#2537 Change-Id: Id5ce18da3652e39edf3b970a99c75424ed039c35 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added ip address pluginJayanth Othayoth2017-11-101-0/+13
| | | | | Change-Id: I1ec3489330abf23eaf87e26a12424d1949f3bf4b Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added inventory pluginJayanth Othayoth2017-11-101-0/+19
| | | | | Change-Id: Ifbb6754aa860ac2dab693c76bf14c54e1df6dc9c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Added GetManagedObjects based elog data collectionJayanth Othayoth2017-11-101-7/+5
| | | | | | | | GetManagedObjects based elog data collection will reduce to one d-bus call, for entire elog properties dump. Change-Id: I2d2a5922418e0c26b5cf93d94203747121910a50 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Spelling fixesGunnar Mills2017-10-251-2/+2
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: I562cc5b407fb2a3a728c6167aaab75acde3adfca Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* dreport: initial commit for Plugin based infrastrctureJayanth Othayoth2017-10-242-682/+328
| | | | | | | | | | Refactor existing dreport to support new plugin based reporting infrastructure. Resolves openbmc/openbmc#2351 Change-Id: Ibf078cf0609e93a873dbcb28a9bfdc25b182500f Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added core file pluginJayanth Othayoth2017-10-241-0/+18
| | | | | | | | Plugin used for moving dreport requestd core file into the dreport packaging. Change-Id: I927841ac82394b8736331169d91968feec11f4d5 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added systemd failed units pluginJayanth Othayoth2017-10-241-0/+13
| | | | | | | | Plugin used for collecting systemd failed units information. Change-Id: Icc5f910f613b78fef2e7e557ddfe85692904bce2 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added cpuinfo pluginJayanth Othayoth2017-10-241-0/+12
| | | | | | | Plugin used for collecting BMC cpu core information. Change-Id: I3cddd89ebe1468d131ddef8ba517ae68aa30c8ab Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added uptime pluginJayanth Othayoth2017-10-241-0/+13
| | | | | | | Plugin used for collecting uptime command output data. Change-Id: Ia6e7f815c4c8e0106cbe77c2c433ff1a01775f95 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added disk usage pluginJayanth Othayoth2017-10-241-0/+13
| | | | | | | Plugin used for collecting BMC disk usage data. Change-Id: I507a7516453aeff7b7675a41a52ec54b881c6ca1 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added osrelease pluginJayanth Othayoth2017-10-241-0/+12
| | | | | | | Plugin used for collecting OS release information. Change-Id: I27fcc47f3a0a1d44aa07001ec61f43d6bf523bf0 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added hostnamectl pluginJayanth Othayoth2017-10-241-0/+13
| | | | | | | Plugin used for collecting current hostname settings. Change-Id: Ie328931a1de648649397d1525f6efaf960a0964e Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added top pluginJayanth Othayoth2017-10-241-0/+13
| | | | | | | | Plugin used for collecting top command output, which provides linux process details. Change-Id: I54633512b6b459d808379467a2f6e77c1ffb0fb8 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added meminfo pluginJayanth Othayoth2017-10-241-0/+12
| | | | | | | | Plugin used for collecting information about the systems RAM usage. Change-Id: I5a3de1442355d913e08675fa1713a0feb4d5bef4 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added OBMC console log pluginJayanth Othayoth2017-10-241-0/+12
| | | | | | | Plugin used for collecting OBMC console log data. Change-Id: I959442e7a1c4cc78934b49a10326f8c16920637a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added journal pretty log pluginJayanth Othayoth2017-10-241-0/+13
| | | | | | | Plugin used for collecting journal pretty log data. Change-Id: I5923708f0f08800d8c3d75faeabc2b9b09999b2d Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added PID based journal log pluginJayanth Othayoth2017-10-241-0/+13
| | | | | | | | Added plugin for collecting user initialized PID specific journal log data. Change-Id: Ifc6243c288d94aceba65709b028841b344e02132 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added elog pluginJayanth Othayoth2017-10-241-0/+22
| | | | | | | | Plugin used for collecting only user initialized elog ID details. Change-Id: I62d6e2bc289b739cbb165e85caafe4b584fa626c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added elogall pluginJayanth Othayoth2017-10-241-0/+31
| | | | | | | Plugin used for collecting all elogs from the BMC. Change-Id: I64cc74aef5beba62da203714734b67af370da9d7 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added HOST state pluginJayanth Othayoth2017-10-241-0/+17
| | | | | | | Plugin used for collecting HOST state information. Change-Id: I91143aaf9b0c0c9a33049df5d84216fd29c6e00f Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added Chassis state pluginJayanth Othayoth2017-10-241-0/+17
| | | | | | | Plugin used for collecting Chassis state information. Change-Id: I9aafd402e6300d7139bdf1ffb4cea60bf0589020 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added BMC state pluginJayanth Othayoth2017-10-241-0/+17
| | | | | | | Plugin used for collecting BMC state information. Change-Id: Id22c18757acabf4944a2b136f1f14abf19021a6a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Initial version of the dreport common functionsJayanth Othayoth2017-10-241-0/+137
| | | | | | | | Moved the common functions used by dreport and plugins into new file. Change-Id: Ia88fdae4dddc4ef61e3864437e2972807749502a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Initial version of the dreport sample conf fileJayanth Othayoth2017-10-241-0/+10
| | | | | | | | | | | | This file is dreport configuration file and is where all dreport configuration settings are placed. The configuration file consists of sections, led by a [section] header and followed by name: value entries, with continuations in the style INI format. Change-Id: Ia3968216250e2756cd95ea605cd07ff21013af26 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Enable "elog" data collection typeJayanth Othayoth2017-09-121-21/+75
| | | | | | | | Enabled this support dump collection during application specific error log commit. Change-Id: I297a2d28c7f302b5126fb7e0792be8b68d6928ac Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Update pid related variable namesJayanth Othayoth2017-09-121-6/+6
| | | | | | | Changed the pid variable name generic instead of type specific Change-Id: Ifc8cec327a68701128c3afe0ee602f53f407d606 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Change -f option to -pJayanth Othayoth2017-09-121-15/+15
| | | | | | | | Change optional file option to path. Valid paths are absolute file path or d-bus path based on type parameter. Change-Id: Ic167f9cc95f280f123d8b318c34c959952f1a78a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Replace eSEL usage by elog stringJayanth Othayoth2017-09-121-4/+4
| | | | | Change-Id: I0f56b55df797ba4a463f7842285aae4788b2724a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Fix typo in help messageJayanth Othayoth2017-09-121-1/+1
| | | | | | | Changed default size "unlimited" Change-Id: Ia7dcd1f3c0e0f7630abdbb2f8ab9d1a36d80b6c9 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport Fix typo in chassis state file nameJayanth Othayoth2017-09-121-1/+1
| | | | | Change-Id: I5037805703feb74d5f8450cde65fb490ba12a0f7 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add core file name validation in core managerJayanth Othayoth2017-09-011-10/+2
| | | | | | | | | | Move the core file name validation from dreport to core manager. systemd-coredump creates temporary file in core file path prior to actual core file creation. This check will help to limit dump creation only for the new core files. Change-Id: I196d3f372d85aae0a7a36ba7171e6bfd2ff4991b Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added time stamp in log messagesJayanth Othayoth2017-08-221-13/+14
| | | | | Change-Id: Ie6d67adbe6b499a7ad1edac7b2de945ea70b0ca4 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Added error handling support in packaging functionJayanth Othayoth2017-08-221-18/+25
| | | | | Change-Id: I8c99fe708f9d5b90a6f868524c7694f520f8f23a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Enable dump collection based on typesJayanth Othayoth2017-08-221-1/+25
| | | | | Change-Id: I9babd0ce347a25aeed75c98ccc3686530efe38e2 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Implementation of extracting pid from the core file nameJayanth Othayoth2017-08-221-0/+24
| | | | | Change-Id: I5605f6f5697ccd4bffa58917b3c6d660a301c6cd Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Implementation of data collection functionJayanth Othayoth2017-08-221-0/+15
| | | | | | | | | | | Added support for running command in the command array and save the data into specified location. Added file level size check function, which helps to cap the final dreport log based on size provided by user. Change-Id: I5bb0f2629bf4b4dd7b86b6dd97d205c413af6fcf Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add command array support for type "core"Jayanth Othayoth2017-08-221-0/+46
| | | | | Change-Id: I1af8a3c26e05c916a3e6d342b0a39f7b37be296c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add command array support for type "user"Jayanth Othayoth2017-08-221-1/+194
| | | | | Change-Id: Ibe4e75746937d186caf33c14258045fc14c5e632 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Implementation of file size check functionJayanth Othayoth2017-08-221-0/+48
| | | | | Change-Id: Ief1b2ebea76f556ba00b2567f8f2db627155d9fd Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add summary logJayanth Othayoth2017-08-221-2/+12
| | | | | Change-Id: Ida6dc81be4103a0d37a0701a7c0d55b241e6fc1a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Enabled input parameter's validation and InitializationJayanth Othayoth2017-08-221-26/+89
| | | | | Change-Id: Icb9d890ef1bdf78ad6bac798b4038bb6973b0693 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* dreport: Add packaging supportJayanth Othayoth2017-08-031-0/+205
Resolves: openbmc/openbmc#1507 Change-Id: I15f76cd8e6652334bcfcc2923773d67fafcfed97 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
OpenPOWER on IntegriCloud