diff options
author | Michael Adam <obnox@samba.org> | 2016-12-01 12:32:37 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-12-01 16:15:12 +0100 |
commit | 2a02bd2ba2a1c48331262e2ec4bda547c32b3419 (patch) | |
tree | ed92a02b0fce4a9f8f45e1c326a66fb212686014 | |
parent | 27be5f6b79b4a8adc2731af38fd4be9e6c05a802 (diff) | |
download | sos-2a02bd2ba2a1c48331262e2ec4bda547c32b3419.tar.gz |
[samba] if --all-logs is given, collect everything under /var/log/samba
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | sos/plugins/samba.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/plugins/samba.py b/sos/plugins/samba.py index 36cc9ded..e57546e6 100644 --- a/sos/plugins/samba.py +++ b/sos/plugins/samba.py @@ -43,6 +43,9 @@ class Samba(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): self.add_copy_spec_limit("/var/log/samba/log.wb-*", sizelimit=self.limit) + if self.get_option("all_logs"): + self.add_copy_spec_limit("/var/log/samba/", sizelimit=self.limit) + self.add_cmd_output([ "wbinfo --domain='.' -g", "wbinfo --domain='.' -u", |