1*61b12b82SJayanth Othayoth#!/bin/bash 2*61b12b82SJayanth Othayoth# 3*61b12b82SJayanth Othayoth# config: 2 20 4*61b12b82SJayanth Othayoth# @brief: Get the inventory information. 5*61b12b82SJayanth Othayoth# 6*61b12b82SJayanth Othayoth 7*61b12b82SJayanth Othayoth. $DREPORT_INCLUDE/functions 8*61b12b82SJayanth Othayoth 9*61b12b82SJayanth Othayothdesc="inventory" 10*61b12b82SJayanth Othayoth 11*61b12b82SJayanth Othayothcommand="busctl call --verbose --no-pager \ 12*61b12b82SJayanth Othayoth xyz.openbmc_project.Inventory.Manager \ 13*61b12b82SJayanth Othayoth /xyz/openbmc_project/inventory \ 14*61b12b82SJayanth Othayoth org.freedesktop.DBus.ObjectManager \ 15*61b12b82SJayanth Othayoth GetManagedObjects" 16*61b12b82SJayanth Othayoth 17*61b12b82SJayanth Othayothfile_name="inventory.log" 18*61b12b82SJayanth Othayoth 19*61b12b82SJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc" 20