diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-11-03 06:09:23 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-11-10 16:26:17 +0000 |
commit | 61b12b82a40f9d60924590a9dcb346184e8115e1 (patch) | |
tree | bfe96aec51a5137547f18cb750dd524d441af8d4 | |
parent | 7533eb3f90ddc90a70281bec4ba9c64e9e05471a (diff) | |
download | phosphor-debug-collector-61b12b82a40f9d60924590a9dcb346184e8115e1.tar.gz phosphor-debug-collector-61b12b82a40f9d60924590a9dcb346184e8115e1.zip |
dreport: Added inventory plugin
Change-Id: Ifbb6754aa860ac2dab693c76bf14c54e1df6dc9c
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r-- | tools/dreport.d/plugins.d/inventory | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/inventory b/tools/dreport.d/plugins.d/inventory new file mode 100644 index 0000000..0fbdf4b --- /dev/null +++ b/tools/dreport.d/plugins.d/inventory @@ -0,0 +1,19 @@ +#!/bin/bash +# +# config: 2 20 +# @brief: Get the inventory information. +# + +. $DREPORT_INCLUDE/functions + +desc="inventory" + +command="busctl call --verbose --no-pager \ + xyz.openbmc_project.Inventory.Manager \ + /xyz/openbmc_project/inventory \ + org.freedesktop.DBus.ObjectManager \ + GetManagedObjects" + +file_name="inventory.log" + +add_cmd_output "$command" "$file_name" "$desc" |