From ad9f33c1f659b4cc728e710c8f423421fdd7d078 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..6162a6ccab 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','mlnx-tools') 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', # sf devices renamed by HBN udev rules + '/tmp/sfr_devices', # sf representor devices renamed by HBN udev rules + '/tmp/sfc-activated', + '/tmp/.BR_*', # temp files created 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", + "mlnx-sf -a show --json --pretty", ])