Skip to content

Commit

Permalink
[powerpc] Collect nvdimm logs
Browse files Browse the repository at this point in the history
Run an opal-prd command to collect nvdimm NV DIMM info which includes:

- Number of NV DIMMs
- Active slot
- Falsh lifetime
- Serial Number
- Runtime

The data generated by the opal-prd for NV DIMM info command is usually
around 1K.

Signed-off-by: Sourabh Jain <[email protected]>
  • Loading branch information
sourabhjains committed Oct 4, 2023
1 parent 98af3c7 commit f4a4006
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sos/report/plugins/powerpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def setup(self):
"/var/log/opal-prd",
"/var/log/opal-prd.log*"
])
self.add_cmd_output([
"opal-prd --expert-mode run nvdimm_info"
])
if self.path_isdir("/var/log/dump"):
self.add_cmd_output("ls -l /var/log/dump")

Expand Down

0 comments on commit f4a4006

Please sign in to comment.