From 1d07795e076a0f25183f722fcd5f629f741d5a40 Mon Sep 17 00:00:00 2001 From: Hareesh Puthalath Date: Wed, 23 Oct 2024 23:21:51 +0200 Subject: [PATCH] [HBN] Add additional hbn related commands and log files. Signed-off-by: Hareesh Puthalath --- sos/report/plugins/hbn.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/sos/report/plugins/hbn.py b/sos/report/plugins/hbn.py index e425dd4afa..3acae14132 100644 --- a/sos/report/plugins/hbn.py +++ b/sos/report/plugins/hbn.py @@ -12,13 +12,29 @@ class HBN(Plugin, IndependentPlugin): - short_desc = 'HBN (Host Based Network)' + short_desc = 'HBN (Host Based Networking)' plugin_name = "hbn" - packages = ('hbn-repo',) + packages = ('hbn-repo') def setup(self): self.add_copy_spec([ '/etc/mellanox', '/var/log/doca/hbn', '/var/lib/hbn/etc/cumulus', + '/var/log/sfc-install.log', + '/usr/lib/udev', # HBN udev rules + '/tmp/sf_devices', # udev renamed sf devices + '/tmp/sfr_devices', # udev renamed sf representor devices + '/tmp/sfc-activated', + '/tmp/.BR_*', # interim temp files for updating hbn.conf + '/tmp/.ENABLE_*', + '/tmp/.LINK_*', + ]) + + self.add_journal(units="sfc") + self.add_journal(units="sfc-state-propagation") + + self.add_cmd_output([ + "mlnx-sf -a show", # short cli output + "mlnx-sf -a show --json --pretty", # more verbose output in json format ])