From bmr at redhat.com Tue Sep 1 10:37:51 2015 From: bmr at redhat.com (Bryn M. Reeves) Date: Tue, 1 Sep 2015 11:37:51 +0100 Subject: [sos-devel] [PATCH] [plugin] Add Dell OMSA systems management info In-Reply-To: <1441044162-30717-1-git-send-email-charles_rose@dell.com> References: <1441044162-30717-1-git-send-email-charles_rose@dell.com> Message-ID: <20150901103751.GA28905@bmr.fab.redhat.com> On Mon, Aug 31, 2015 at 01:02:42PM -0500, Charles_Rose at dell.com wrote: > +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin > + > +class omsa(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): > + '''Dell OpenManage Server Administrator (OMSA) > + ''' > + > + plugin_name = "omsa" > + files = ('/opt/dell/srvadmin/bin/omreport',) > + packages = ('srvadmin-omacore',) > + > + omreport = "/opt/dell/srvadmin/bin/omreport" You may want to add the plugin to a profile at this point (users are increasingly using this as a way to select groups of plugins). Take a look at the existing plugin set for examples of how to do this and the output of '--list-profiles' to get an idea of what's defined now. Regards, Bryn. From Charles_Rose at dell.com Tue Sep 1 19:22:55 2015 From: Charles_Rose at dell.com (Charles_Rose at dell.com) Date: Tue, 1 Sep 2015 14:22:55 -0500 Subject: [sos-devel] [PATCH] [plugin] Add Dell OMSA systems management info In-Reply-To: <20150901103751.GA28905@bmr.fab.redhat.com> References: <1441044162-30717-1-git-send-email-charles_rose@dell.com> <20150901103751.GA28905@bmr.fab.redhat.com> Message-ID: <55E5FB0F.8070008@dell.com> On 09/01/2015 06:37 AM, Bryn M. Reeves wrote: > On Mon, Aug 31, 2015 at 01:02:42PM -0500, Charles_Rose at dell.com wrote: >> +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin >> + >> +class omsa(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): >> + '''Dell OpenManage Server Administrator (OMSA) >> + ''' >> + >> + plugin_name = "omsa" >> + files = ('/opt/dell/srvadmin/bin/omreport',) >> + packages = ('srvadmin-omacore',) >> + >> + omreport = "/opt/dell/srvadmin/bin/omreport" > > You may want to add the plugin to a profile at this point (users are > increasingly using this as a way to select groups of plugins). Take > a look at the existing plugin set for examples of how to do this and > the output of '--list-profiles' to get an idea of what's defined now. Bryn, Thanks for the feedback. I will send an updated patch. -- Thanks, Charles Rose Dell From Charles_Rose at dell.com Tue Sep 1 19:26:31 2015 From: Charles_Rose at dell.com (Charles_Rose at dell.com) Date: Tue, 1 Sep 2015 14:26:31 -0500 Subject: [sos-devel] [PATCHv2] [plugin] Add Dell OMSA systems management info Message-ID: <1441135591-22703-1-git-send-email-charles_rose@dell.com> Add plugin to collect logs and hardware health from Dell OpenManage Server Administrator (OMSA). Dell OMSA is an OS application used to manage Dell PowerEdge Server hardware. Signed-off-by: Charles Rose --- sos/plugins/omsa.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 sos/plugins/omsa.py v2: Add the plugin to relevant profiles diff --git a/sos/plugins/omsa.py b/sos/plugins/omsa.py new file mode 100644 index 0000000..ef80f94 --- /dev/null +++ b/sos/plugins/omsa.py @@ -0,0 +1,51 @@ +# Copyright (C) 2015 Dell, Inc. Charles Rose +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin + +class omsa(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): + '''Dell OpenManage Server Administrator (OMSA) + ''' + + plugin_name = 'omsa' + profiles = ('hardware', 'debug') + + files = ('/opt/dell/srvadmin/bin/omreport',) + packages = ('srvadmin-omacore',) + + omreport = '/opt/dell/srvadmin/bin/omreport' + + def setup(self): + self.add_copy_spec([ + "/var/log/dell/updatepackage/log/support", + "/opt/dell/srvadmin/var/log/openmanage/Inventory.xml*", + "/opt/dell/srvadmin/etc/omreg.cfg", + "/opt/dell/srvadmin/etc/openmanage/oma/ini", + "/opt/dell/srvadmin/etc/srvadmin-deng/ini", + "/opt/dell/srvadmin/etc/srvadmin-isvc/ini/d*ini", + ]) + + self.add_cmd_output([ + "{0} system alertaction".format(self.omreport), + "{0} system alertlog".format(self.omreport), + "{0} system cmdlog".format(self.omreport), + "{0} system pedestinations".format(self.omreport), + "{0} system platformevents".format(self.omreport), + "{0} system summary".format(self.omreport), + "{0} system events".format(self.omreport), + "{0} chassis info".format(self.omreport), + ], timeout=30) + +# vim: et ts=4 sw=4 -- 2.4.3 From sbonazzo at redhat.com Fri Sep 4 14:19:38 2015 From: sbonazzo at redhat.com (Sandro Bonazzola) Date: Fri, 4 Sep 2015 16:19:38 +0200 Subject: [sos-devel] review vdsm sosreport patch In-Reply-To: <258955628.10939971.1433759526949.JavaMail.zimbra@redhat.com> References: <137690594.8928837.1430725932760.JavaMail.zimbra@redhat.com> <9144685F-62C2-4CFD-8DED-E292BC99C2E3@redhat.com> <20150506095926.GA23765@localhost.localdomain> <258955628.10939971.1433759526949.JavaMail.zimbra@redhat.com> Message-ID: On Mon, Jun 8, 2015 at 12:32 PM, Yeela Kaplan wrote: > Hi, > A newer version with some fixed issues is attached. > Would appreciate your review. > Status of this patch? > Thanks, > Yeela > > ----- Original Message ----- > > From: "Bryn M. Reeves" > > To: "Shane Bradley" > > Cc: "Yeela Kaplan" , sos-devel at redhat.com > > Sent: Wednesday, May 6, 2015 12:59:27 PM > > Subject: Re: [sos-devel] review vdsm sosreport patch > > > > On Tue, May 05, 2015 at 04:13:13PM -0400, Shane Bradley wrote: > > > Can you create a bugzilla for this? > > > > Let's deal with the upstream submission first - then we can determine > > what products are affected and how to migrate from the bundled plugin > > to the upstream one in those downstream projects (it's a lot more than > > just RHEL). > > > > Regards, > > BRyn. > > > > > > On May 4, 2015, at 3:52 AM, Yeela Kaplan wrote: > > > > > > > > Hi, > > > > Attached is a vdsm plugin for sosreport. > > > > I'd love your review. > > > > > > > > Thanks, > > > > > Yeela<0001-vdsm-Introducing-vdsm-plugin-into-sosreport.patch>_______________________________________________ > > > > sos-devel mailing list > > > > sos-devel at redhat.com > > > > https://www.redhat.com/mailman/listinfo/sos-devel > > > > > > > > > _______________________________________________ > > > sos-devel mailing list > > > sos-devel at redhat.com > > > https://www.redhat.com/mailman/listinfo/sos-devel > > > > _______________________________________________ > sos-devel mailing list > sos-devel at redhat.com > https://www.redhat.com/mailman/listinfo/sos-devel > -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmr at redhat.com Fri Sep 4 14:55:27 2015 From: bmr at redhat.com (Bryn M. Reeves) Date: Fri, 4 Sep 2015 15:55:27 +0100 Subject: [sos-devel] review vdsm sosreport patch In-Reply-To: References: <137690594.8928837.1430725932760.JavaMail.zimbra@redhat.com> <9144685F-62C2-4CFD-8DED-E292BC99C2E3@redhat.com> <20150506095926.GA23765@localhost.localdomain> <258955628.10939971.1433759526949.JavaMail.zimbra@redhat.com> Message-ID: <20150904145526.GE26665@bmr.fab.redhat.com> On Fri, Sep 04, 2015 at 04:19:38PM +0200, Sandro Bonazzola wrote: > On Mon, Jun 8, 2015 at 12:32 PM, Yeela Kaplan wrote: > > > Hi, > > A newer version with some fixed issues is attached. > > Would appreciate your review. > > > > Status of this patch? I think we will need to rewrite it from scratch: I tried to provide general review feedback and pointers to our documentation but this did not result in a revised patch that actually took account of the suggestions that had been made or the established standards for sos plugin code. Regards, Bryn. From Charles_Rose at dell.com Tue Sep 15 15:59:48 2015 From: Charles_Rose at dell.com (Charles_Rose at dell.com) Date: Tue, 15 Sep 2015 10:59:48 -0500 Subject: [sos-devel] [PATCHv2] [plugin] Add Dell OMSA systems management info In-Reply-To: <1441135591-22703-1-git-send-email-charles_rose@dell.com> References: <1441135591-22703-1-git-send-email-charles_rose@dell.com> Message-ID: <55F84074.1070001@dell.com> On 09/01/2015 03:26 PM, Charles Rose wrote: > Add plugin to collect logs and hardware health from Dell OpenManage > Server Administrator (OMSA). > > Dell OMSA is an OS application used to manage Dell PowerEdge Server > hardware. > > Signed-off-by: Charles Rose > --- > sos/plugins/omsa.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 sos/plugins/omsa.py > > v2: Add the plugin to relevant profiles > > diff --git a/sos/plugins/omsa.py b/sos/plugins/omsa.py > new file mode 100644 > index 0000000..ef80f94 > --- /dev/null > +++ b/sos/plugins/omsa.py > @@ -0,0 +1,51 @@ > +# Copyright (C) 2015 Dell, Inc. Charles Rose > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 2 of the License, or > +# (at your option) any later version. > + > +# This program is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > + > +# You should have received a copy of the GNU General Public License > +# along with this program; if not, write to the Free Software > +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > + > +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin > + > +class omsa(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): > + '''Dell OpenManage Server Administrator (OMSA) > + ''' > + > + plugin_name = 'omsa' > + profiles = ('hardware', 'debug') > + > + files = ('/opt/dell/srvadmin/bin/omreport',) > + packages = ('srvadmin-omacore',) > + > + omreport = '/opt/dell/srvadmin/bin/omreport' > + > + def setup(self): > + self.add_copy_spec([ > + "/var/log/dell/updatepackage/log/support", > + "/opt/dell/srvadmin/var/log/openmanage/Inventory.xml*", > + "/opt/dell/srvadmin/etc/omreg.cfg", > + "/opt/dell/srvadmin/etc/openmanage/oma/ini", > + "/opt/dell/srvadmin/etc/srvadmin-deng/ini", > + "/opt/dell/srvadmin/etc/srvadmin-isvc/ini/d*ini", > + ]) > + > + self.add_cmd_output([ > + "{0} system alertaction".format(self.omreport), > + "{0} system alertlog".format(self.omreport), > + "{0} system cmdlog".format(self.omreport), > + "{0} system pedestinations".format(self.omreport), > + "{0} system platformevents".format(self.omreport), > + "{0} system summary".format(self.omreport), > + "{0} system events".format(self.omreport), > + "{0} chassis info".format(self.omreport), > + ], timeout=30) > + > +# vim: et ts=4 sw=4 > Bryn/List, Request your review of this patch and inclusion in sos. -- Thanks, Charles Rose From bmr at redhat.com Wed Sep 16 10:24:12 2015 From: bmr at redhat.com (Bryn M. Reeves) Date: Wed, 16 Sep 2015 11:24:12 +0100 Subject: [sos-devel] [PATCHv2] [plugin] Add Dell OMSA systems management info In-Reply-To: <55F84074.1070001@dell.com> References: <1441135591-22703-1-git-send-email-charles_rose@dell.com> <55F84074.1070001@dell.com> Message-ID: <20150916102411.GA14901@localhost.localdomain> On Tue, Sep 15, 2015 at 10:59:48AM -0500, Charles_Rose at dell.com wrote: > On 09/01/2015 03:26 PM, Charles Rose wrote: > > Add plugin to collect logs and hardware health from Dell OpenManage > > Server Administrator (OMSA). > > > > Dell OMSA is an OS application used to manage Dell PowerEdge Server > > hardware. > > > > Signed-off-by: Charles Rose > > --- > > Bryn/List, > > Request your review of this patch and inclusion in sos. Hi Charles, There's a backlog of patches from the mailing list to be merged at the moment as I've been tied up with other projects for the summer. Yours has already been reviewed though and (with the profile addition) is ready to be applied - it will be in the next upstream release (3.3) which we will be getting out in the next month or two. I'll send a note to the list when it's committed. Regards, Bryn. From builds at travis-ci.org Fri Sep 25 20:11:01 2015 From: builds at travis-ci.org (Travis CI) Date: Fri, 25 Sep 2015 20:11:01 +0000 Subject: [sos-devel] Broken: sosreport/sos#1122 (master - a1eb232) In-Reply-To: Message-ID: <5605aa554e9d0_3173fa14766359@b5e35110-cf8b-48bd-808c-970533415926.mail> Build Update for sosreport/sos ------------------------------------- Build: #1122 Status: Broken Duration: 1 minute and 15 seconds Commit: a1eb232 (master) Author: Lee Yarwood Message: [openstack] New openstack_instack plugin. Add a new plugin for instack [1] and instack-undercloud [2]. These two components are currently used to drive the deployment of the undercloud in RDO Manager and RHEL OSP director environments. Instack itself is considered low level tooling and is in turn called by higher level user applications such as the RDO Manager Openstack client plugin [3]. This plugin also adds a new openstack_undercloud profile to be used to tag simillar Openstack plugins that are only found in the undercloud. [1] https://github.com/rdo-management/instack [2] https://github.com/rdo-management/instack-undercloud [3] https://github.com/rdo-management/python-rdomanager-oscplugin Resolves #620. Signed-off-by: Lee Yarwood View the changeset: https://github.com/sosreport/sos/compare/887fc720db5e...a1eb23241c06 View the full build log and details: https://travis-ci.org/sosreport/sos/builds/82220194 -- You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.collins at ge.com Mon Sep 28 20:52:09 2015 From: brian.collins at ge.com (Collins, Brian (GE Corporate, consultant)) Date: Mon, 28 Sep 2015 20:52:09 +0000 Subject: [sos-devel] question about configuration file Message-ID: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> Is it possible to config a sos.conf with the equivalent -o option from the command line? I have not seen a full options list for the sos.conf. and finding one seems next to impossible.... Brian Collins -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmr at redhat.com Tue Sep 29 09:45:22 2015 From: bmr at redhat.com (Bryn M. Reeves) Date: Tue, 29 Sep 2015 10:45:22 +0100 Subject: [sos-devel] question about configuration file In-Reply-To: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> References: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> Message-ID: <20150929094521.GD25149@bmr.fab.redhat.com> On Mon, Sep 28, 2015 at 08:52:09PM +0000, Collins, Brian (GE Corporate, consultant) wrote: > Is it possible to config a sos.conf with the equivalent -o option from the command line? Hi Brian, This is done in the 'tunables' section of sos.conf (not a great name but it dates back all the way to the introduction of the config file and we haven't yet had a good enough cause to break backward compatibility). There is an example of this use in the default sos.conf that is installed by most distribution packages: [tunables] #rpm.rpmva = off #general.syslogsize = 15 To enable the examples just uncomment the line (remove the '#') and re-run sosreport. The line format is 'plugin_name.option_name'. To see the list of plugins and their options for the installed version of sos run 'sosreport -l', e.g.: http://fpaste.org/272569/35192701/ You should be able to set any of the options listed under 'The following plugin options are available' from the configuration file in this way. > I have not seen a full options list for the sos.conf. and finding one seems next to impossible.... You don't mention the version of sos that you are running but there are only two sections supported in the current release (3.2): '[plugins]' (for disabling plugins), and '[tunables]' (for setting plugin options). These are both documented in the sos.conf man page: the docs cover the structure of the file and the 'sosreport -l' output tells you the options available for the running version of the command. You can find all the sos manual pages online as entries in the upstream wiki: https://github.com/sosreport/sos/wiki/sos.conf.5 https://github.com/sosreport/sos/wiki/sosreport.1 The installed sos.conf may also mention a '[general]' section that was supported by older sos versions. This is no longer used in the current release and we will remove the stray references from the example files in the next release. Regards, Bryn. From builds at travis-ci.org Tue Sep 29 09:50:40 2015 From: builds at travis-ci.org (Travis CI) Date: Tue, 29 Sep 2015 09:50:40 +0000 Subject: [sos-devel] Still Failing: sosreport/sos#1124 (master - 64d8813) In-Reply-To: Message-ID: <560a5ef04e5e8_317010087363d5@f09dda38-8813-4a77-a4ef-ff9c62fa4bf2.mail> Build Update for sosreport/sos ------------------------------------- Build: #1124 Status: Still Failing Duration: 26 seconds Commit: 64d8813 (master) Author: Bryn M. Reeves Message: [config] remove 'general' section from example sos.conf Signed-off-by: Bryn M. Reeves View the changeset: https://github.com/sosreport/sos/compare/a1eb23241c06...64d88130d570 View the full build log and details: https://travis-ci.org/sosreport/sos/builds/82707347 -- You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications -------------- next part -------------- An HTML attachment was scrubbed... URL: From builds at travis-ci.org Tue Sep 29 13:23:01 2015 From: builds at travis-ci.org (Travis CI) Date: Tue, 29 Sep 2015 13:23:01 +0000 Subject: [sos-devel] Still Failing: sosreport/sos#1125 (master - 98416c2) In-Reply-To: Message-ID: <560a90b48c230_3acd4d235598c@d1ca9865-8c36-4369-95a2-fc8e2f442e84.mail> Build Update for sosreport/sos ------------------------------------- Build: #1125 Status: Still Failing Duration: 1 minute and 4 seconds Commit: 98416c2 (master) Author: Bryn M. Reeves Message: [docs] add contributor guidelines link to patch docs Signed-off-by: Bryn M. Reeves View the changeset: https://github.com/sosreport/sos/compare/64d88130d570...98416c273e71 View the full build log and details: https://travis-ci.org/sosreport/sos/builds/82735500 -- You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications -------------- next part -------------- An HTML attachment was scrubbed... URL: From builds at travis-ci.org Tue Sep 29 13:41:15 2015 From: builds at travis-ci.org (Travis CI) Date: Tue, 29 Sep 2015 13:41:15 +0000 Subject: [sos-devel] Still Failing: sosreport/sos#1126 (master - 9e4a5b7) In-Reply-To: Message-ID: <560a94facbdb8_3105f3b0580139@ebd05f90-4ba0-48c9-ae93-8cda0465e8d5.mail> Build Update for sosreport/sos ------------------------------------- Build: #1126 Status: Still Failing Duration: 20 seconds Commit: 9e4a5b7 (master) Author: Jake Hunsaker Message: [kubernetes] Change 'minions' to 'nodes'. Kube no longer uses 'minions' and only accepts 'nodes' in kubectl. Previous versions of kubectl all accepted both 'nodes' and 'minions' however since v1.0, 'minions' has been deprecated. Closes #638 Signed-off-by: Jake Hunsaker Signed-off-by: Adam Stokes View the changeset: https://github.com/sosreport/sos/compare/98416c273e71...9e4a5b75ca94 View the full build log and details: https://travis-ci.org/sosreport/sos/builds/82738606 -- You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.collins at ge.com Tue Sep 29 13:43:15 2015 From: brian.collins at ge.com (Collins, Brian (GE Corporate, consultant)) Date: Tue, 29 Sep 2015 13:43:15 +0000 Subject: [sos-devel] question about configuration file References: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> <20150929094521.GD25149@bmr.fab.redhat.com> Message-ID: <0023A05A1133C34F9C47CFA8283F8482A6E5B7@CINURCNA08.e2k.ad.ge.com> I am having to run this on several versions from 1.7 to 2.2 (~ 360) so I am trying ONLY the most common modules to gather information. Brian _____________________________________________ From: Collins, Brian (GE Corporate, consultant) Sent: Tuesday, September 29, 2015 9:33 AM To: 'Bryn M. Reeves' Cc: sos-devel at redhat.com Subject: RE: [sos-devel] question about configuration file This is not what I am talking about. Not modules options but to enable only a set of modules just like the -o flag. Example: sosreport -o anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,libraries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,sar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat works by enabling ONLY these modules while the config file looking as such does not: [general] #ftp_upload_url = ftp://example.com/incoming #gpg_keyring = /usr/share/sos/rhsupport.pub #gpg_recipient = support at redhat.com smtp_server = None [plugins] enable = anaconda, apache, bootloader, crontab, filesys, general, hardware, kernel, libraries, lsbrelease, memory, networking, nscd, ntp, openssl, pam, process, rpm, sar, sendmail, snmp, ssh, startup, system, udev, xinetd, yum, mysql, rhn, tomcat [tunables] #rpm.rpmva = off #general.syslogsize = 15 Below I am including an output of the commands both with a -l flag for comparison. You can clearly see the config file does not enable only the modules requested whereas the -o flag does: WITH ONLY CONFIG FILE: [bcollins at gisciohwblpoc12 ~]$ sosreport --config-file=brians_sos.conf -l sosreport (version 2.2) The following plugins are currently enabled: acpid acpid related information anaconda Anaconda / Installation information apache Apache related information auditd Auditd related information autofs autofs server-related information bootloader Bootloader information cgroups cgroup subsystem information crontab Crontab information devicemapper device-mapper related information (dm, lvm, multipath) dovecot dovecot server related information filesys information on filesystems foreman Foreman related information ftp FTP server related information gdm gdm related information general basic system information gluster gluster related information hardware hardware related information hts Red Hat Hardware Test Suite related information i18n i18n related information iscsi iscsi-initiator related information kdump Kdump related information kernel kernel related information krb5 Samba related information ldap LDAP related information libraries information on shared libraries libvirt libvirt-related information logrotate logrotate configuration files and debug info lsbrelease Linux Standard Base information memory memory usage information mrggrid MRG GRID related information mrgmessg MRG Messaging related information mysql MySQL related information networking network related information nfs NFS related information nscd NSCD related information ntp NTP related information openhpi OpenHPI related information openssl openssl related information openswan ipsec related information pam PAM related information pgsql PostgreSQL related information postfix mail server related information ppp ppp, wvdial and rp-pppoe related information printing printing related information (cups) process process information psacct Process accounting related information radius radius related information rpm RPM information samba Samba related information sar Generate the sar file from /var/log/sa/saXX files selinux selinux related information sendmail sendmail information smartcard Smart Card related information snmp snmp related information ssh ssh-related information sssd sssd-related Diagnostic Information startup startup information sunrpc Sun RPC related information system core system related information systemtap SystemTap information udev udev related information x11 X related information xinetd xinetd information yum yum information The following plugins are currently disabled: amd Amd automounter information cloudforms CloudForms related information cluster cluster suite and GFS related information cobbler cobbler related information corosync corosync information cs Certificate System 7.x Diagnostic Information dhcp DHCP related information ds Directory Server information emc EMC related information (PowerPath, Solutions Enabler CLI and Navisphere CLI) infiniband Infiniband related information initrd initrd related information ipa IPA diagnostic information ipsec ipsec related information iscsitarget iscsi-target related information kernel_realtime Information specific to the realtime kernel kvm KVM related information named named related information netdump Netdump Configuration Information nfsserver NFS server-related information oddjob oddjob related information pxe PXE related information qpidd Messaging related information quagga quagga related information rhn RHN Satellite related information rhui Red Hat Update Infrastructure for Cloud Providers s390 s390 related information sanitize sanitize specified log files, etc sanlock sanlock-related information soundcard Sound card information squid squid related information tftpserver tftpserver related information tomcat Tomcat related information veritas veritas related information vmware VMWare related information xen Xen related information The following plugin options are available: apache.log off gathers all apache logs auditd.syslogsize 15 max size (MiB) to collect per syslog file devicemapper.lvmdump off collect an lvmdump devicemapper.lvmdump-am off attempt to collect an lvmdump with advanced options and raw metadata collection filesys.dumpe2fs off dump filesystem information general.syslogsize 15 max size (MiB) to collect per syslog file general.all_logs off collect all log files defined in syslog.conf kernel.modinfo on gathers information on all kernel modules libraries.ldconfigv off the name of each directory as it is scanned, and any links that are created. networking.traceroute off collects a traceroute to linux.oracle.com nscd.nscdlogsize 50 max size (MiB) to collect per nscd log file openswan.ipsec-barf off collect the output of the ipsec barf command pgsql.pghome /var/lib/pgsql PostgreSQL server home directory (default=/var/lib/pgsql) pgsql.username off username for pg_dump (default=postgres) pgsql.password off password for pg_dump (default=None) pgsql.dbname off database name to dump for pg_dump (default=None) pgsql.dbhost off hostname/IP of the server upon which the DB is running (default=localhost) pgsql.dbport off database server port number (default=5432) printing.cups 50 max size (MiB) to collect per cups log file psacct.all off collect all process accounting files rpm.rpmq on queries for package information via rpm -q rpm.rpmva off runs a verify on all packages selinux.fixfiles off Print incorrect file context labels selinux.list off List objects and their context startup.servicestatus off get a status of all running services yum.yumlist off list repositories and packages yum.yumdebug off gather yum debugging data WITH ONLY O FLAG: [bcollins at gisciohwblpoc12 ~]$ sosreport -l -o anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,libraries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,sar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat sosreport (version 2.2) The following plugins are currently enabled: anaconda Anaconda / Installation information apache Apache related information bootloader Bootloader information crontab Crontab information filesys information on filesystems general basic system information hardware hardware related information kernel kernel related information libraries information on shared libraries lsbrelease Linux Standard Base information memory memory usage information networking network related information nscd NSCD related information ntp NTP related information openssl openssl related information pam PAM related information process process information rhn RHN Satellite related information rpm RPM information sar Generate the sar file from /var/log/sa/saXX files sendmail sendmail information snmp snmp related information ssh ssh-related information startup startup information system core system related information tomcat Tomcat related information udev udev related information xinetd xinetd information yum yum information The following plugins are currently disabled: acpid acpid related information amd Amd automounter information auditd Auditd related information autofs autofs server-related information cgroups cgroup subsystem information cloudforms CloudForms related information cluster cluster suite and GFS related information cobbler cobbler related information corosync corosync information cs Certificate System 7.x Diagnostic Information devicemapper device-mapper related information (dm, lvm, multipath) dhcp DHCP related information dovecot dovecot server related information ds Directory Server information emc EMC related information (PowerPath, Solutions Enabler CLI and Navisphere CLI) foreman Foreman related information ftp FTP server related information gdm gdm related information gluster gluster related information hts Red Hat Hardware Test Suite related information i18n i18n related information infiniband Infiniband related information initrd initrd related information ipa IPA diagnostic information ipsec ipsec related information iscsi iscsi-initiator related information iscsitarget iscsi-target related information kdump Kdump related information kernel_realtime Information specific to the realtime kernel krb5 Samba related information kvm KVM related information ldap LDAP related information libvirt libvirt-related information logrotate logrotate configuration files and debug info mrggrid MRG GRID related information mrgmessg MRG Messaging related information mysql MySQL related information named named related information netdump Netdump Configuration Information nfs NFS related information nfsserver NFS server-related information oddjob oddjob related information openhpi OpenHPI related information openswan ipsec related information pgsql PostgreSQL related information postfix mail server related information ppp ppp, wvdial and rp-pppoe related information printing printing related information (cups) psacct Process accounting related information pxe PXE related information qpidd Messaging related information quagga quagga related information radius radius related information rhui Red Hat Update Infrastructure for Cloud Providers s390 s390 related information samba Samba related information sanitize sanitize specified log files, etc sanlock sanlock-related information selinux selinux related information smartcard Smart Card related information soundcard Sound card information squid squid related information sssd sssd-related Diagnostic Information sunrpc Sun RPC related information systemtap SystemTap information tftpserver tftpserver related information veritas veritas related information vmware VMWare related information x11 X related information xen Xen related information The following plugin options are available: apache.log off gathers all apache logs filesys.dumpe2fs off dump filesystem information general.syslogsize 15 max size (MiB) to collect per syslog file general.all_logs off collect all log files defined in syslog.conf kernel.modinfo on gathers information on all kernel modules libraries.ldconfigv off the name of each directory as it is scanned, and any links that are created. networking.traceroute off collects a traceroute to linux.oracle.com nscd.nscdlogsize 50 max size (MiB) to collect per nscd log file rhn.log off gathers all apache logs rpm.rpmq on queries for package information via rpm -q rpm.rpmva off runs a verify on all packages startup.servicestatus off get a status of all running services yum.yumlist off list repositories and packages yum.yumdebug off gather yum debugging data -----Original Message----- From: Bryn M. Reeves [mailto:bmr at redhat.com] Sent: Tuesday, September 29, 2015 5:45 AM To: Collins, Brian (GE Corporate, consultant) Cc: sos-devel at redhat.com Subject: Re: [sos-devel] question about configuration file On Mon, Sep 28, 2015 at 08:52:09PM +0000, Collins, Brian (GE Corporate, consultant) wrote: > Is it possible to config a sos.conf with the equivalent -o option from the command line? Hi Brian, This is done in the 'tunables' section of sos.conf (not a great name but it dates back all the way to the introduction of the config file and we haven't yet had a good enough cause to break backward compatibility). There is an example of this use in the default sos.conf that is installed by most distribution packages: [tunables] #rpm.rpmva = off #general.syslogsize = 15 To enable the examples just uncomment the line (remove the '#') and re-run sosreport. The line format is 'plugin_name.option_name'. To see the list of plugins and their options for the installed version of sos run 'sosreport -l', e.g.: https://urldefense.proofpoint.com/v2/url?u=http-3A__fpaste.org_272569_35192701_&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=huHvbYc8jLmac4H0JfUWBWRJCsM-LDv1EG62dEUa6QU&s=gNzfb_ZihZhCjZ7O5_yvk_0GyO-5Mqp5w0G3mpOJly0&e= You should be able to set any of the options listed under 'The following plugin options are available' from the configuration file in this way. > I have not seen a full options list for the sos.conf. and finding one seems next to impossible.... You don't mention the version of sos that you are running but there are only two sections supported in the current release (3.2): '[plugins]' (for disabling plugins), and '[tunables]' (for setting plugin options). These are both documented in the sos.conf man page: the docs cover the structure of the file and the 'sosreport -l' output tells you the options available for the running version of the command. You can find all the sos manual pages online as entries in the upstream wiki: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sosreport_sos_wiki_sos.conf.5&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=huHvbYc8jLmac4H0JfUWBWRJCsM-LDv1EG62dEUa6QU&s=WXGQgbgQnDCyVN6r4GOIBW1lmCeTCtRGanZjKA7m4ck&e= https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sosreport_sos_wiki_sosreport.1&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=huHvbYc8jLmac4H0JfUWBWRJCsM-LDv1EG62dEUa6QU&s=XlIgyM-6XEbzW2aeEkztx-cnaDIay3WxrShzaFfnwQY&e= The installed sos.conf may also mention a '[general]' section that was supported by older sos versions. This is no longer used in the current release and we will remove the stray references from the example files in the next release. Regards, Bryn. -------------- next part -------------- An HTML attachment was scrubbed... URL: From builds at travis-ci.org Tue Sep 29 13:44:57 2015 From: builds at travis-ci.org (Travis CI) Date: Tue, 29 Sep 2015 13:44:57 +0000 Subject: [sos-devel] Fixed: sosreport/sos#1127 (master - 2bf233b) In-Reply-To: Message-ID: <560a95d7ab248_310743c2582350@ebd05f90-4ba0-48c9-ae93-8cda0465e8d5.mail> Build Update for sosreport/sos ------------------------------------- Build: #1127 Status: Fixed Duration: 18 seconds Commit: 2bf233b (master) Author: Adam Stokes Message: Update travis-ci build properties Utilize their container based build system for faster runs. Update test version matrix. Signed-off-by: Adam Stokes View the changeset: https://github.com/sosreport/sos/compare/9e4a5b75ca94...2bf233b5ff80 View the full build log and details: https://travis-ci.org/sosreport/sos/builds/82739398 -- You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.collins at ge.com Tue Sep 29 13:33:28 2015 From: brian.collins at ge.com (Collins, Brian (GE Corporate, consultant)) Date: Tue, 29 Sep 2015 13:33:28 +0000 Subject: [sos-devel] question about configuration file In-Reply-To: <20150929094521.GD25149@bmr.fab.redhat.com> References: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> <20150929094521.GD25149@bmr.fab.redhat.com> Message-ID: <0023A05A1133C34F9C47CFA8283F8482A6E566@CINURCNA08.e2k.ad.ge.com> This is not what I am talking about. Not modules options but to enable only a set of modules just like the -o flag. Example: sosreport -o anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,libraries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,sar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat works by enabling ONLY these modules while the config file looking as such does not: [general] #ftp_upload_url = ftp://example.com/incoming #gpg_keyring = /usr/share/sos/rhsupport.pub #gpg_recipient = support at redhat.com smtp_server = None [plugins] enable = anaconda, apache, bootloader, crontab, filesys, general, hardware, kernel, libraries, lsbrelease, memory, networking, nscd, ntp, openssl, pam, process, rpm, sar, sendmail, snmp, ssh, startup, system, udev, xinetd, yum, mysql, rhn, tomcat [tunables] #rpm.rpmva = off #general.syslogsize = 15 Below I am including an output of the commands both with a -l flag for comparison. You can clearly see the config file does not enable only the modules requested whereas the -o flag does: WITH ONLY CONFIG FILE: [bcollins at gisciohwblpoc12 ~]$ sosreport --config-file=brians_sos.conf -l sosreport (version 2.2) The following plugins are currently enabled: acpid acpid related information anaconda Anaconda / Installation information apache Apache related information auditd Auditd related information autofs autofs server-related information bootloader Bootloader information cgroups cgroup subsystem information crontab Crontab information devicemapper device-mapper related information (dm, lvm, multipath) dovecot dovecot server related information filesys information on filesystems foreman Foreman related information ftp FTP server related information gdm gdm related information general basic system information gluster gluster related information hardware hardware related information hts Red Hat Hardware Test Suite related information i18n i18n related information iscsi iscsi-initiator related information kdump Kdump related information kernel kernel related information krb5 Samba related information ldap LDAP related information libraries information on shared libraries libvirt libvirt-related information logrotate logrotate configuration files and debug info lsbrelease Linux Standard Base information memory memory usage information mrggrid MRG GRID related information mrgmessg MRG Messaging related information mysql MySQL related information networking network related information nfs NFS related information nscd NSCD related information ntp NTP related information openhpi OpenHPI related information openssl openssl related information openswan ipsec related information pam PAM related information pgsql PostgreSQL related information postfix mail server related information ppp ppp, wvdial and rp-pppoe related information printing printing related information (cups) process process information psacct Process accounting related information radius radius related information rpm RPM information samba Samba related information sar Generate the sar file from /var/log/sa/saXX files selinux selinux related information sendmail sendmail information smartcard Smart Card related information snmp snmp related information ssh ssh-related information sssd sssd-related Diagnostic Information startup startup information sunrpc Sun RPC related information system core system related information systemtap SystemTap information udev udev related information x11 X related information xinetd xinetd information yum yum information The following plugins are currently disabled: amd Amd automounter information cloudforms CloudForms related information cluster cluster suite and GFS related information cobbler cobbler related information corosync corosync information cs Certificate System 7.x Diagnostic Information dhcp DHCP related information ds Directory Server information emc EMC related information (PowerPath, Solutions Enabler CLI and Navisphere CLI) infiniband Infiniband related information initrd initrd related information ipa IPA diagnostic information ipsec ipsec related information iscsitarget iscsi-target related information kernel_realtime Information specific to the realtime kernel kvm KVM related information named named related information netdump Netdump Configuration Information nfsserver NFS server-related information oddjob oddjob related information pxe PXE related information qpidd Messaging related information quagga quagga related information rhn RHN Satellite related information rhui Red Hat Update Infrastructure for Cloud Providers s390 s390 related information sanitize sanitize specified log files, etc sanlock sanlock-related information soundcard Sound card information squid squid related information tftpserver tftpserver related information tomcat Tomcat related information veritas veritas related information vmware VMWare related information xen Xen related information The following plugin options are available: apache.log off gathers all apache logs auditd.syslogsize 15 max size (MiB) to collect per syslog file devicemapper.lvmdump off collect an lvmdump devicemapper.lvmdump-am off attempt to collect an lvmdump with advanced options and raw metadata collection filesys.dumpe2fs off dump filesystem information general.syslogsize 15 max size (MiB) to collect per syslog file general.all_logs off collect all log files defined in syslog.conf kernel.modinfo on gathers information on all kernel modules libraries.ldconfigv off the name of each directory as it is scanned, and any links that are created. networking.traceroute off collects a traceroute to linux.oracle.com nscd.nscdlogsize 50 max size (MiB) to collect per nscd log file openswan.ipsec-barf off collect the output of the ipsec barf command pgsql.pghome /var/lib/pgsql PostgreSQL server home directory (default=/var/lib/pgsql) pgsql.username off username for pg_dump (default=postgres) pgsql.password off password for pg_dump (default=None) pgsql.dbname off database name to dump for pg_dump (default=None) pgsql.dbhost off hostname/IP of the server upon which the DB is running (default=localhost) pgsql.dbport off database server port number (default=5432) printing.cups 50 max size (MiB) to collect per cups log file psacct.all off collect all process accounting files rpm.rpmq on queries for package information via rpm -q rpm.rpmva off runs a verify on all packages selinux.fixfiles off Print incorrect file context labels selinux.list off List objects and their context startup.servicestatus off get a status of all running services yum.yumlist off list repositories and packages yum.yumdebug off gather yum debugging data WITH ONLY O FLAG: [bcollins at gisciohwblpoc12 ~]$ sosreport -l -o anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,libraries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,sar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat sosreport (version 2.2) The following plugins are currently enabled: anaconda Anaconda / Installation information apache Apache related information bootloader Bootloader information crontab Crontab information filesys information on filesystems general basic system information hardware hardware related information kernel kernel related information libraries information on shared libraries lsbrelease Linux Standard Base information memory memory usage information networking network related information nscd NSCD related information ntp NTP related information openssl openssl related information pam PAM related information process process information rhn RHN Satellite related information rpm RPM information sar Generate the sar file from /var/log/sa/saXX files sendmail sendmail information snmp snmp related information ssh ssh-related information startup startup information system core system related information tomcat Tomcat related information udev udev related information xinetd xinetd information yum yum information The following plugins are currently disabled: acpid acpid related information amd Amd automounter information auditd Auditd related information autofs autofs server-related information cgroups cgroup subsystem information cloudforms CloudForms related information cluster cluster suite and GFS related information cobbler cobbler related information corosync corosync information cs Certificate System 7.x Diagnostic Information devicemapper device-mapper related information (dm, lvm, multipath) dhcp DHCP related information dovecot dovecot server related information ds Directory Server information emc EMC related information (PowerPath, Solutions Enabler CLI and Navisphere CLI) foreman Foreman related information ftp FTP server related information gdm gdm related information gluster gluster related information hts Red Hat Hardware Test Suite related information i18n i18n related information infiniband Infiniband related information initrd initrd related information ipa IPA diagnostic information ipsec ipsec related information iscsi iscsi-initiator related information iscsitarget iscsi-target related information kdump Kdump related information kernel_realtime Information specific to the realtime kernel krb5 Samba related information kvm KVM related information ldap LDAP related information libvirt libvirt-related information logrotate logrotate configuration files and debug info mrggrid MRG GRID related information mrgmessg MRG Messaging related information mysql MySQL related information named named related information netdump Netdump Configuration Information nfs NFS related information nfsserver NFS server-related information oddjob oddjob related information openhpi OpenHPI related information openswan ipsec related information pgsql PostgreSQL related information postfix mail server related information ppp ppp, wvdial and rp-pppoe related information printing printing related information (cups) psacct Process accounting related information pxe PXE related information qpidd Messaging related information quagga quagga related information radius radius related information rhui Red Hat Update Infrastructure for Cloud Providers s390 s390 related information samba Samba related information sanitize sanitize specified log files, etc sanlock sanlock-related information selinux selinux related information smartcard Smart Card related information soundcard Sound card information squid squid related information sssd sssd-related Diagnostic Information sunrpc Sun RPC related information systemtap SystemTap information tftpserver tftpserver related information veritas veritas related information vmware VMWare related information x11 X related information xen Xen related information The following plugin options are available: apache.log off gathers all apache logs filesys.dumpe2fs off dump filesystem information general.syslogsize 15 max size (MiB) to collect per syslog file general.all_logs off collect all log files defined in syslog.conf kernel.modinfo on gathers information on all kernel modules libraries.ldconfigv off the name of each directory as it is scanned, and any links that are created. networking.traceroute off collects a traceroute to linux.oracle.com nscd.nscdlogsize 50 max size (MiB) to collect per nscd log file rhn.log off gathers all apache logs rpm.rpmq on queries for package information via rpm -q rpm.rpmva off runs a verify on all packages startup.servicestatus off get a status of all running services yum.yumlist off list repositories and packages yum.yumdebug off gather yum debugging data -----Original Message----- From: Bryn M. Reeves [mailto:bmr at redhat.com] Sent: Tuesday, September 29, 2015 5:45 AM To: Collins, Brian (GE Corporate, consultant) Cc: sos-devel at redhat.com Subject: Re: [sos-devel] question about configuration file On Mon, Sep 28, 2015 at 08:52:09PM +0000, Collins, Brian (GE Corporate, consultant) wrote: > Is it possible to config a sos.conf with the equivalent -o option from the command line? Hi Brian, This is done in the 'tunables' section of sos.conf (not a great name but it dates back all the way to the introduction of the config file and we haven't yet had a good enough cause to break backward compatibility). There is an example of this use in the default sos.conf that is installed by most distribution packages: [tunables] #rpm.rpmva = off #general.syslogsize = 15 To enable the examples just uncomment the line (remove the '#') and re-run sosreport. The line format is 'plugin_name.option_name'. To see the list of plugins and their options for the installed version of sos run 'sosreport -l', e.g.: https://urldefense.proofpoint.com/v2/url?u=http-3A__fpaste.org_272569_35192701_&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=huHvbYc8jLmac4H0JfUWBWRJCsM-LDv1EG62dEUa6QU&s=gNzfb_ZihZhCjZ7O5_yvk_0GyO-5Mqp5w0G3mpOJly0&e= You should be able to set any of the options listed under 'The following plugin options are available' from the configuration file in this way. > I have not seen a full options list for the sos.conf. and finding one seems next to impossible.... You don't mention the version of sos that you are running but there are only two sections supported in the current release (3.2): '[plugins]' (for disabling plugins), and '[tunables]' (for setting plugin options). These are both documented in the sos.conf man page: the docs cover the structure of the file and the 'sosreport -l' output tells you the options available for the running version of the command. You can find all the sos manual pages online as entries in the upstream wiki: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sosreport_sos_wiki_sos.conf.5&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=huHvbYc8jLmac4H0JfUWBWRJCsM-LDv1EG62dEUa6QU&s=WXGQgbgQnDCyVN6r4GOIBW1lmCeTCtRGanZjKA7m4ck&e= https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sosreport_sos_wiki_sosreport.1&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=huHvbYc8jLmac4H0JfUWBWRJCsM-LDv1EG62dEUa6QU&s=XlIgyM-6XEbzW2aeEkztx-cnaDIay3WxrShzaFfnwQY&e= The installed sos.conf may also mention a '[general]' section that was supported by older sos versions. This is no longer used in the current release and we will remove the stray references from the example files in the next release. Regards, Bryn. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmr at redhat.com Tue Sep 29 17:40:29 2015 From: bmr at redhat.com (Bryn M. Reeves) Date: Tue, 29 Sep 2015 18:40:29 +0100 Subject: [sos-devel] question about configuration file In-Reply-To: <0023A05A1133C34F9C47CFA8283F8482A6E5B7@CINURCNA08.e2k.ad.ge.com> References: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> <20150929094521.GD25149@bmr.fab.redhat.com> <0023A05A1133C34F9C47CFA8283F8482A6E5B7@CINURCNA08.e2k.ad.ge.com> Message-ID: <20150929174029.GC23320@localhost.localdomain> On Tue, Sep 29, 2015 at 01:43:15PM +0000, Collins, Brian (GE Corporate, consultant) wrote: > This is not what I am talking about. Not modules options but to enable only a set of modules just like the -o flag. > > Example: > > sosreport -o anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,libraries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,sar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat Currently you can only provide a list of modules to *disable* from the configuration file - there hasn't been any request for an enable list to date. You're welcome to file an RFE in the GitHub issue tracker to add this feature - it's relatively trivial to implement however since you are using versions as far back as 1.7 be aware that most of the distributions that shipped this version are now in maintenance phase and so will not accept any feature updates even if we did implement this upstream. If you need something that works across releases then you'll need to do it by creating an exclusion list of all the plugins you want to disable on all possible releases (it's valid to reference a non-existent plugin in the disable list), for e.g.: # cat /etc/sos.conf [plugins] disable = foo, bar, baz, qux, rpm # sosreport -l [...] rpm skipped RPM Package Manager [...] Anything marked in the disable list will show as 'skipped' and will not be run by default. You should be able to use this to create a global list of plugins you don't want to see running, although this is somewhat contrary to how sos is intended to be used - a level of maintenance will be needed as new versions introduce new plugins and profiles. Regards, Bryn. From bmr at redhat.com Tue Sep 29 17:45:01 2015 From: bmr at redhat.com (Bryn M. Reeves) Date: Tue, 29 Sep 2015 18:45:01 +0100 Subject: [sos-devel] question about configuration file In-Reply-To: <0023A05A1133C34F9C47CFA8283F8482A6E566@CINURCNA08.e2k.ad.ge.com> References: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> <20150929094521.GD25149@bmr.fab.redhat.com> <0023A05A1133C34F9C47CFA8283F8482A6E566@CINURCNA08.e2k.ad.ge.com> Message-ID: <20150929174501.GD23320@localhost.localdomain> On Tue, Sep 29, 2015 at 01:33:28PM +0000, Collins, Brian (GE Corporate, consultant) wrote: > sosreport -o anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,libraries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,sar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat It might help to explain why you want to exclude everything but a particular whitelist of plugins: it's not the common way of using the tool and although there are some existing users that do work this way they tend to approach the problem using a wrapper script (e.g. RHEV/oVirt and various Gluster sub-projects). > works by enabling ONLY these modules while the config file looking as such does not: > [general] > > #ftp_upload_url = ftp://example.com/incoming > #gpg_keyring = /usr/share/sos/rhsupport.pub > #gpg_recipient = support at redhat.com > smtp_server = None > > [plugins] > > enable = anaconda, apache, bootloader, crontab, filesys, general, hardware, kernel, libraries, lsbrelease, memory, networking, nscd, ntp, openssl, pam, process, rpm, sar, sendmail, snmp, ssh, startup, system, udev, xinetd, yum, mysql, rhn, tomcat See my other reply - an 'enable' option has never existed in this file - the documentation is pretty complete: there just are not that many options available in sos.conf. Regards, Bryn. From brian.collins at ge.com Tue Sep 29 18:34:17 2015 From: brian.collins at ge.com (Collins, Brian (GE Corporate, consultant)) Date: Tue, 29 Sep 2015 18:34:17 +0000 Subject: [sos-devel] question about configuration file In-Reply-To: <20150929174501.GD23320@localhost.localdomain> References: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> <20150929094521.GD25149@bmr.fab.redhat.com> <0023A05A1133C34F9C47CFA8283F8482A6E566@CINURCNA08.e2k.ad.ge.com> <20150929174501.GD23320@localhost.localdomain> Message-ID: <0023A05A1133C34F9C47CFA8283F8482A6E8E0@CINURCNA08.e2k.ad.ge.com> In 1.7 some features like cgroups don't exist. I wanted a blanket of the simplest modules to just run a for loop to sosreport / scp the contents to a main server so I can awk grep and sed through it. The highest revision I have seen in these servers is 2.2 and the lowest is 1.7. It's a one shot to gather most of the critical config files and compare to others. Some plugins will cause sosreport to hang. These seem to work on all of the referenced servers.... Thank you for the clarification. I believe I will just have to use the -o option in my for loop. It would be nice to have an only option in the sos.conf though..... Brian Collins -----Original Message----- From: Bryn M. Reeves [mailto:bmr at redhat.com] Sent: Tuesday, September 29, 2015 1:45 PM To: Collins, Brian (GE Corporate, consultant) Cc: sos-devel at redhat.com Subject: Re: [sos-devel] question about configuration file On Tue, Sep 29, 2015 at 01:33:28PM +0000, Collins, Brian (GE Corporate, consultant) wrote: > sosreport -o > anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,lib > raries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,s > ar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat It might help to explain why you want to exclude everything but a particular whitelist of plugins: it's not the common way of using the tool and although there are some existing users that do work this way they tend to approach the problem using a wrapper script (e.g. RHEV/oVirt and various Gluster sub-projects). > works by enabling ONLY these modules while the config file looking as such does not: > [general] > > #ftp_upload_url = > https://urldefense.proofpoint.com/v2/url?u=ftp-3A__example.com_incomin > g&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR > 3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=kb1Fh4WynlhNJXmYLaw9NCNoDZ9higy9E1B > 0998Fuek&s=z_-rYqfAsCNfSRx6ZRw46zVCWCsYJACmXEzbH7j6SAc&e= > #gpg_keyring = /usr/share/sos/rhsupport.pub #gpg_recipient = > support at redhat.com smtp_server = None > > [plugins] > > enable = anaconda, apache, bootloader, crontab, filesys, general, > hardware, kernel, libraries, lsbrelease, memory, networking, nscd, > ntp, openssl, pam, process, rpm, sar, sendmail, snmp, ssh, startup, > system, udev, xinetd, yum, mysql, rhn, tomcat See my other reply - an 'enable' option has never existed in this file - the documentation is pretty complete: there just are not that many options available in sos.conf. Regards, Bryn. From bmr at redhat.com Wed Sep 30 14:47:04 2015 From: bmr at redhat.com (Bryn M. Reeves) Date: Wed, 30 Sep 2015 15:47:04 +0100 Subject: [sos-devel] question about configuration file In-Reply-To: <0023A05A1133C34F9C47CFA8283F8482A6E8E0@CINURCNA08.e2k.ad.ge.com> References: <0023A05A1133C34F9C47CFA8283F8482A6DF04@CINURCNA08.e2k.ad.ge.com> <20150929094521.GD25149@bmr.fab.redhat.com> <0023A05A1133C34F9C47CFA8283F8482A6E566@CINURCNA08.e2k.ad.ge.com> <20150929174501.GD23320@localhost.localdomain> <0023A05A1133C34F9C47CFA8283F8482A6E8E0@CINURCNA08.e2k.ad.ge.com> Message-ID: <20150930144703.GA6453@localhost.localdomain> On Tue, Sep 29, 2015 at 06:34:17PM +0000, Collins, Brian (GE Corporate, consultant) wrote: > In 1.7 some features like cgroups don't exist. I wanted a blanket of the simplest modules to just run a for loop to sosreport / scp the contents to a main server so I can awk grep and sed through it. The highest revision I have seen in these servers is 2.2 and the lowest is 1.7. It's a one shot to gather most of the critical config files and compare to others. Some plugins will cause sosreport to hang. These seem to work on all of the referenced servers.... This sounds like a very similar use-case to the RHEV, oVirt, and RHS (Gluster) "logCollector" tools. These are ssh (pSSH in latest versions so that the collection is parallelised across hosts) based drivers for sos that run a pre-determined plugin set using -o. https://github.com/oVirt/ovirt-log-collector You might want to take a look at those projects to see if you could re-use any of this in your environment. > Thank you for the clarification. I believe I will just have to use the -o option in my for loop. > > It would be nice to have an only option in the sos.conf though..... I'll file an issue - it is straightforward to implement - however since you're committed to using old versions that will not be updated by the respective distributions I doubt that it would solve your problem until those older versions go EOL. Regards, Bryn.