diff options
author | Sourabh Jain <sourabhjain@linux.ibm.com> | 2023-05-04 10:33:48 +0530 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2023-05-24 10:38:32 -0400 |
commit | 7f7328d596e2dac755a6ebe0e37a8bb4893975d5 (patch) | |
tree | 3d9ae805de348233e1c125ece1ce53151c16d6fe | |
parent | 0db0afa049d54785b3321429b5ed9604d5fff016 (diff) | |
download | sos-7f7328d596e2dac755a6ebe0e37a8bb4893975d5.tar.gz |
[powerpc] collect invscout logs
Gather the microcode and Vital Product Data (VPD) files produced by
running the invscout commands.
The invscout commands are executed prior to the commencement of log file
collection.
The invscout log files are generally small in size (KBs) and previous
log files are removed from the /var/adm/invscout directory each time
the invscout command is executed.
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Suggested-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
Tested-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
-rw-r--r-- | sos/report/plugins/powerpc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sos/report/plugins/powerpc.py b/sos/report/plugins/powerpc.py index 597fcd97..f807549a 100644 --- a/sos/report/plugins/powerpc.py +++ b/sos/report/plugins/powerpc.py @@ -92,6 +92,14 @@ class PowerPC(Plugin, IndependentPlugin): "lsslot", "amsstat" ]) + + # Due to the lack of options in invscout for generating log files + # in locations other than /var/adm/invscout/, it is necessary to + # run invscout commands prior to collecting the log files. + self.collect_cmd_output("invscout") + self.collect_cmd_output("invscout -v") + self.add_copy_spec(["/var/adm/invscout/*"]) + self.add_service_status([ "hcn-init", "ctrmc" |