diff --git a/sos/report/plugins/nvidia.py b/sos/report/plugins/nvidia.py index 25d35e53a1..778ba6a9bd 100644 --- a/sos/report/plugins/nvidia.py +++ b/sos/report/plugins/nvidia.py @@ -16,7 +16,9 @@ class Nvidia(Plugin, IndependentPlugin): short_desc = 'Nvidia GPU information' plugin_name = 'nvidia' - commands = ('nvidia-smi',) + commands = ('nvidia-smi', 'nvidia-ctk',) + services = ('nvidia-persistenced', 'nvidia-fabricmanager', + 'nvidia-toolkit-firstboot') def setup(self): subcmds = [ @@ -30,8 +32,15 @@ def setup(self): 'nvlink -e' ] - self.add_service_status("nvidia-persistenced") + ctk_subcmds = [ + 'cdi list', + '--version', + ] + + self.add_copy_spec("/etc/cdi/nvidia.yaml") + self.add_cmd_output([f"nvidia-smi {cmd}" for cmd in subcmds]) + self.add_cmd_output([f"nvidia-ctk {cmd}" for cmd in ctk_subcmds]) query = ('gpu_name,gpu_bus_id,vbios_version,temperature.gpu,' 'utilization.gpu,memory.total,memory.free,memory.used,' @@ -44,4 +53,5 @@ def setup(self): ) self.add_journal(boot=0, identifier='nvidia-persistenced') + # vim: set et ts=4 sw=4 :