summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-10-15 05:42:48 -0500
committerJayanth Othayoth <ojayanth@in.ibm.com>2017-10-24 10:12:06 -0500
commit42d6ab7c7ff746c3a9a343f4fa17d92fc3ddb538 (patch)
treecf55865f5ce817d94a1d8d60a583a64e968e7aaa
parent35586cd22ed04249cb70fd3dc2fe5edd3b144d53 (diff)
downloadphosphor-debug-collector-42d6ab7c7ff746c3a9a343f4fa17d92fc3ddb538.tar.gz
phosphor-debug-collector-42d6ab7c7ff746c3a9a343f4fa17d92fc3ddb538.zip
dreport: Added elog plugin
Plugin used for collecting only user initialized elog ID details. Change-Id: I62d6e2bc289b739cbb165e85caafe4b584fa626c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r--tools/dreport.d/plugins.d/elog22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/elog b/tools/dreport.d/plugins.d/elog
new file mode 100644
index 0000000..5bd956a
--- /dev/null
+++ b/tools/dreport.d/plugins.d/elog
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# config: 3 20
+# @brief: Collect only user initialized elog ID details.
+#
+
+. $DREPORT_INCLUDE/functions
+
+if [ -z $elog_id ]; then
+ log_error "elog does not exist"
+ exit
+fi
+
+desc="elog id:$elog_id"
+file_name="elog-$elog_id.log"
+command="busctl --verbose --no-pager \
+ call xyz.openbmc_project.Logging \
+ $optional_path \
+ org.freedesktop.DBus.Properties GetAll s \
+ xyz.openbmc_project.Logging.Entry"
+
+add_cmd_output "$command" "$file_name" "$desc"
OpenPOWER on IntegriCloud