diff --git a/redundant-bmc/src/rbmc_tool.cpp b/redundant-bmc/src/rbmc_tool.cpp index 6113eed..019e936 100644 --- a/redundant-bmc/src/rbmc_tool.cpp +++ b/redundant-bmc/src/rbmc_tool.cpp @@ -1,6 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 #include "persistent_data.hpp" +#include "redundancy.hpp" #include "services_impl.hpp" #include @@ -99,6 +100,22 @@ sdbusplus::async::task<> "Role Reason: {}\n", data::read(data::key::roleReason) .value_or("No reason found")); + + if ((role == "Active") && !enabled) + { + using NoRedDetails = + std::map; + auto details = data::read(data::key::noRedDetails) + .value_or(NoRedDetails{}); + if (!details.empty()) + { + std::cout << std::format("No redundancy reasons:\n"); + for (const auto& d : std::views::values(details)) + { + std::cout << std::format(" {}\n", d); + } + } + } } } catch (const std::exception& e)