xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/mctp (revision e110762f865fe1d1b2dee65b86099d885a2af547)
1#!/bin/bash
2#
3# config: 1234 65
4# @brief: Collect list of all MCTP Addresses.
5#
6
7# shellcheck source=tools/dreport.d/include.d/functions
8. "$DREPORT_INCLUDE"/functions
9
10# If mctp is not installed, do not try to collect
11if [ ! -x /usr/bin/mctp ]; then
12    exit 0
13fi
14
15add_cmd_output "mctp address show" "mctp-addresses.log" "MCTP Addresses"
16add_cmd_output "mctp link show" "mctp-links.log" "MCTP Links"
17add_cmd_output "mctp neigh show" "mctp-neigh.log" "MCTP Neighbors"
18add_cmd_output "mctp route show" "mctp-route.log" "MCTP Routes"
19add_cmd_output "busctl tree au.com.codeconstruct.MCTP1" "mctp-tree.log" "MCTP DBus objects"
20