Skip to content

Commit

Permalink
[HBN] Add additional hbn related commands and log files.
Browse files Browse the repository at this point in the history
Signed-off-by: Hareesh Puthalath <[email protected]>
  • Loading branch information
hareeshpc committed Oct 31, 2024
1 parent 5787b9f commit 1d07795
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions sos/report/plugins/hbn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
])

0 comments on commit 1d07795

Please sign in to comment.