History log of /openbmc/openpower-debug-collector/dump/tools/common/include/opfunctions (Results 1 – 6 of 6)
Revision Date Author Comments
# da97c067 03-Dec-2025 Sera Susan Koshy <Sera.Koshy@ibm.com>

bmcdump: Fix fetch serial number function in shell script

An extra space caused the shell to interpret the statement incorrectly,
leading to unexpected behavior. The extra space was removed.

```
Te

bmcdump: Fix fetch serial number function in shell script

An extra space caused the shell to interpret the statement incorrectly,
leading to unexpected behavior. The extra space was removed.

```
Test Results :

Before:
Nov 26 07:30:18 p10bmc phosphor-dump-manager[2873]: /usr/share/dreport.d/include.d/opfunctions: line 15: [: missing `]'
Nov 26 07:30:18 p10bmc phosphor-dump-manager[2878]: /usr/share/dreport.d/include.d/opfunctions: line 15: 137A791: command not found
Nov 26 07:30:18 p10bmc phosphor-dump-manager[2873]: performing dump compression /tmp/BMCDUMP.0000000.00000051.20251126072948
Nov 26 07:30:21 p10bmc phosphor-dump-manager[2873]: Adding Dump Header :/usr/share/dreport.d/include.d/gendumpheader
Nov 26 07:30:21 p10bmc phosphor-dump-manager[2902]: /usr/share/dreport.d/include.d/opfunctions: line 15: [: missing `]'
Nov 26 07:30:21 p10bmc phosphor-dump-manager[2924]: /usr/share/dreport.d/include.d/opfunctions: line 15: 137A791: command not found
Nov 26 07:30:39 p10bmc phosphor-dump-manager[2873]: Wed Nov 26 07:30:39 UTC 2025 Report is available in /var/lib/phosphor-debug-collector/dumps/51

After:
Nov 26 07:39:43 p10bmc phosphor-dump-manager[3487]: performing dump compression /tmp/BMCDUMP.137A791.00000052.20251126073911
Nov 26 07:39:45 p10bmc phosphor-dump-manager[3487]: Adding Dump Header :/usr/share/dreport.d/include.d/gendumpheader
Nov 26 07:40:03 p10bmc phosphor-dump-manager[3487]: Wed Nov 26 07:40:03 UTC 2025 Report is available in /var/lib/phosphor-debug-collector/dumps/52
Nov 26 07:40:03 p10bmc phosphor-dump-manager[3101]: Wed Nov 26 07:40:03 UTC 2025 Successfully completed
```

Change-Id: Ic1b4c3d5ec47efd664f4f610b7c40075a389fc8b
Signed-off-by: Sera Susan Koshy <Sera.Koshy@ibm.com>

show more ...


# ccfcc08e 18-Nov-2025 Parasa-Swetha1 <Parasa.Swetha1@ibm.com>

opfunctions: Fix serial number check

If the serial number contains invalid characters, the BMC dump filename
and header may be incorrect, causing extraction errors. Check that
the serial number is

opfunctions: Fix serial number check

If the serial number contains invalid characters, the BMC dump filename
and header may be incorrect, causing extraction errors. Check that
the serial number is an alphanumeric string exactly 7 characters long;
if it is not, assign 0000000 as a default value.

Test Results:

```
Before:
Nov 23 01:04:53 p10bmc phosphor-dump-manager[10552]: serial no ''
Nov 23 01:04:53 p10bmc phosphor-dump-manager[10552]: performing dump compression /tmp/BMCDUMP.''.00000016.20261123010343
Nov 23 01:04:56 p10bmc phosphor-dump-manager[10552]: Adding Dump Header :/usr/share/dreport.d/include.d/gendumpheader
Nov 23 01:05:03 p10bmc phosphor-dump-manager[10552]: Mon Nov 23 01:05:03 UTC 2026 Report is available in /var/lib/phosphor-debug-collector/dumps/16
Nov 23 01:05:03 p10bmc phosphor-dump-manager[504]: Invalid Dump file name, FILENAME: /var/lib/phosphor-debug-collector/dumps/16/BMCDUMP.''.00000016.20261123010343

After:
Nov 23 01:07:25 p10bmc phosphor-dump-manager[11104]: serial no ''
Nov 23 01:07:25 p10bmc phosphor-dump-manager[11104]: performing dump compression /tmp/BMCDUMP.0000000.00000017.20261123010614
Nov 23 01:07:27 p10bmc phosphor-dump-manager[11104]: Adding Dump Header :/usr/share/dreport.d/include.d/gendumpheader
Nov 23 01:07:35 p10bmc phosphor-dump-manager[11104]: Mon Nov 23 01:07:35 UTC 2026 Report is available in /var/lib/phosphor-debug-collector/dumps/17
Nov 23 01:07:35 p10bmc phosphor-dump-manager[10704]: Mon Nov 23 01:07:35 UTC 2026 Successfully completed
```

Change-Id: Ic4bbc83c7ca30c4b51aca10268188811b7584897
Signed-off-by: Swetha Parasa <parasa.swetha1@ibm.com>

show more ...


# 1bee03b8 13-Jun-2024 Swarnendu-R-C <Swarnendu.Roy.Chowdhury@ibm.com>

gendumpheader: Originator details info added

There are two parameters available for each dump,
Originator ID and Originator Type. This change
aims to include these fields into the BMC dump
header.

gendumpheader: Originator details info added

There are two parameters available for each dump,
Originator ID and Originator Type. This change
aims to include these fields into the BMC dump
header.

If for any reason either the originator ID or
originator type or both are unavailable then
they are been replaced by their allocated null
bytes.

Test Results:
Tested on generated BMC dumps and verified.

Signed-off-by: Swarnendu Roy Chowdhury <swarnendu.roy.chowdhury@ibm.com>
Signed-off-by: Gopichand Paturi <gopichandpaturi@gmail.com>
Change-Id: I611cce4f19aaef13c3ee68c16cf7b4fb2f841591

show more ...


# 0d72381f 24-Oct-2024 Gopichand Paturi <gopichandpaturi@gmail.com>

Faultlog: Add support to install Faultlog

Add faultlog to bmcdump plugins and include faultlog in dreport_op.conf
which shall install the plugin from meta-ibm layer in openbmc repo
and creates sym-l

Faultlog: Add support to install Faultlog

Add faultlog to bmcdump plugins and include faultlog in dreport_op.conf
which shall install the plugin from meta-ibm layer in openbmc repo
and creates sym-link.

Test Results:
Verified that openpower-debug-collector recipe installs faultlog script

sysroot-destdir$ ls usr/share/dreport.d/pl_faultdata.d
E10faultlog

Change-Id: I46ece91a04d4d40a3bd72771d6fea11468e5e403
Signed-off-by: Gopichand Paturi <gopichandpaturi@gmail.com>

show more ...


# 9a39f43d 18-Oct-2024 SwethaParasa <parasa.swetha1@ibm.com>

opfunctions: Fix dumpId length

Dump Id in BMC Dump Filename is padded to 7 digits instead of 8 digits.
This is causing file name mismatch between the dump offloaded to
HMC/OS and the dump stored on

opfunctions: Fix dumpId length

Dump Id in BMC Dump Filename is padded to 7 digits instead of 8 digits.
This is causing file name mismatch between the dump offloaded to
HMC/OS and the dump stored on BMC. Fixing this issue by padding Dump
Id to 8 digits.

Test Results:

Before:
root@p10bmc:/var/lib/phosphor-debug-collector/dumps/6# ls
BMCDUMP.13ECF8X.0000006.20241001051003

After:
root@p10bmc:/var/lib/phosphor-debug-collector/dumps/17# ls
BMCDUMP.1012345.00000017.20330125023119

Change-Id: I04c469ad3aaf6480c5732445ba7f8e644357262e
Signed-off-by: SwethaParasa <parasa.swetha1@ibm.com>

show more ...


# 24226c4f 16-May-2024 Gopichand Paturi <gopichandpaturi@gmail.com>

Move dump scripts from phosphor-debug-collector

This commit is intended to move the dump collection
scripts from openbmc/phosphor-debug-collector repository.
Following are the scripts that are pulle

Move dump scripts from phosphor-debug-collector

This commit is intended to move the dump collection
scripts from openbmc/phosphor-debug-collector repository.
Following are the scripts that are pulled from the
specified paths of openbmc/phosphor-debug-collector.

1. tools/dreport.d/ibm.d/package
2. tools/dreport.d/ibm.d/plugins.d/pels
3. tools/dreport.d/ibm.d/plugins.d/badpel
4. tools/dreport.d/ibm.d/plugins.d/vpd_data
5. tools/dreport.d/openpower.d/plugins.d/cfam
6. tools/dreport.d/openpower.d/plugins.d/dumpfilelist
7. tools/dreport.d/openpower.d/plugins.d/guardlist
8. tools/dreport.d/openpower.d/plugins.d/obmcconsole1
9. tools/dreport.d/openpower.d/plugins.d/occ
10.tools/dreport.d/openpower.d/plugins.d/phal_devtree

Also the following 3 patches have been applied.
1.https://gerrit.openbmc.org/c/openbmc/phosphor-debug-collector/+/56428
2.https://gerrit.openbmc.org/c/openbmc/phosphor-debug-collector/+/52436
3.https://gerrit.openbmc.org/c/openbmc/phosphor-debug-collector/+/47917

Also, added meson changes to install the scripts.

Test:
Verified that the scripts are getting installed correctly on BMC.

Change-Id: Iaddf909efaa138db06c877e5ca6a80608feb5baf
Signed-off-by: Gopichand Paturi <gopichandpaturi@gmail.com>

show more ...