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
diff --git a/dump/tools/opdump/opdreport b/dump/tools/opdump/opdreport
index 7fc43db..92a7ce9 100644
--- a/dump/tools/opdump/opdreport
+++ b/dump/tools/opdump/opdreport
@@ -73,6 +73,9 @@
declare -x dump_content_type=""
declare -x FILE=""
+#Source opdreport common functions
+. $DREPORT_INCLUDE/opfunctions
+
# @brief Get serial number property from inventory
function fetch_serial_number() {
serialNo=$(busctl get-property "$INVENTORY_MANAGER" "$INVENTORY_PATH" \
@@ -109,6 +112,8 @@
dump_size=$UNLIMITED
fi
+ get_originator_details "system"
+
return "$SUCCESS"
}