<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div><font color="#1F497D">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. </font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">Brian</font></div>
<div><font color="#1F497D"> </font></div>
<div><font face="Tahoma" size="2"><span style="font-size:10pt;">_____________________________________________<br>

<b>From:</b> Collins, Brian (GE Corporate, consultant) <br>

<b>Sent:</b> Tuesday, September 29, 2015 9:33 AM<br>

<b>To:</b> 'Bryn M. Reeves'<br>

<b>Cc:</b> sos-devel@redhat.com<br>

<b>Subject:</b> RE: [sos-devel] question about configuration file</span></font></div>
<div> </div>
<div> </div>
<div>This is not what I am talking about. Not modules options but to enable only a set of modules just like the -o flag.</div>
<div> </div>
<div>Example:</div>
<div> </div>
<div>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</div>
<div> </div>
<div>works by enabling ONLY these modules while the config file looking as such does not:</div>
<div>[general]</div>
<div> </div>
<div>#ftp_upload_url = <a href="ftp://example.com/incoming"><font color="blue"><u>ftp://example.com/incoming</u></font></a></div>
<div>#gpg_keyring = /usr/share/sos/rhsupport.pub</div>
<div>#gpg_recipient = <a href="mailto:support@redhat.com"><font color="blue"><u>support@redhat.com</u></font></a></div>
<div>smtp_server = None</div>
<div> </div>
<div>[plugins]</div>
<div> </div>
<div>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</div>
<div> </div>
<div>[tunables]</div>
<div> </div>
<div>#rpm.rpmva = off</div>
<div>#general.syslogsize = 15</div>
<div> </div>
<div> </div>
<div>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:</div>
<div> </div>
<div><b><u>WITH ONLY CONFIG FILE:</u></b></div>
<div>        </div>
<div> </div>
<div>[bcollins@gisciohwblpoc12 ~]$ sosreport --config-file=brians_sos.conf -l</div>
<div> </div>
<div>sosreport (version 2.2)</div>
<div> </div>
<div>The following plugins are currently enabled:</div>
<div> </div>
<div> acpid           acpid related information</div>
<div> anaconda        Anaconda / Installation information</div>
<div> apache          Apache related information</div>
<div> auditd          Auditd related information</div>
<div> autofs          autofs server-related information</div>
<div> bootloader      Bootloader information</div>
<div> cgroups         cgroup subsystem information</div>
<div> crontab         Crontab information</div>
<div> devicemapper    device-mapper related information (dm, lvm, multipath)</div>
<div> dovecot         dovecot server related information</div>
<div> filesys         information on filesystems</div>
<div> foreman         Foreman related information</div>
<div> ftp             FTP server related information</div>
<div> gdm             gdm related information</div>
<div> general         basic system information</div>
<div> gluster         gluster related information</div>
<div> hardware        hardware related information</div>
<div> hts             Red Hat Hardware Test Suite related information</div>
<div> i18n            i18n related information</div>
<div> iscsi           iscsi-initiator related information</div>
<div> kdump           Kdump related information</div>
<div> kernel          kernel related information</div>
<div> krb5            Samba related information</div>
<div> ldap            LDAP related information</div>
<div> libraries       information on shared libraries</div>
<div> libvirt         libvirt-related information</div>
<div> logrotate       logrotate configuration files and debug info</div>
<div> lsbrelease      Linux Standard Base information</div>
<div> memory          memory usage information</div>
<div> mrggrid         MRG GRID related information</div>
<div> mrgmessg        MRG Messaging related information</div>
<div> mysql           MySQL related information</div>
<div> networking      network related information</div>
<div> nfs             NFS related information</div>
<div> nscd            NSCD related information</div>
<div> ntp             NTP related information</div>
<div> openhpi         OpenHPI related information</div>
<div> openssl         openssl related information</div>
<div> openswan        ipsec related information</div>
<div> pam             PAM related information</div>
<div> pgsql           PostgreSQL related information</div>
<div> postfix         mail server related information</div>
<div> ppp             ppp, wvdial and rp-pppoe related information</div>
<div> printing        printing related information (cups)</div>
<div> process         process information</div>
<div> psacct          Process accounting related information</div>
<div> radius          radius related information</div>
<div> rpm             RPM information</div>
<div> samba           Samba related information</div>
<div> sar             Generate the sar file from /var/log/sa/saXX files</div>
<div> selinux         selinux related information</div>
<div> sendmail        sendmail information</div>
<div> smartcard       Smart Card related information</div>
<div> snmp            snmp related information</div>
<div> ssh             ssh-related information</div>
<div> sssd            sssd-related Diagnostic Information</div>
<div> startup         startup information</div>
<div> sunrpc          Sun RPC related information</div>
<div> system          core system related information</div>
<div> systemtap       SystemTap information</div>
<div> udev            udev related information</div>
<div> x11             X related information</div>
<div> xinetd          xinetd information</div>
<div> yum             yum information</div>
<div> </div>
<div>The following plugins are currently disabled:</div>
<div> </div>
<div> amd               Amd automounter information</div>
<div> cloudforms        CloudForms related information</div>
<div> cluster           cluster suite and GFS related information</div>
<div> cobbler           cobbler related information</div>
<div> corosync          corosync information</div>
<div> cs                Certificate System 7.x Diagnostic Information</div>
<div> dhcp              DHCP related information</div>
<div> ds                Directory Server information</div>
<div> emc               EMC related information (PowerPath, Solutions Enabler CLI and Navisphere CLI)</div>
<div> infiniband        Infiniband related information</div>
<div> initrd            initrd related information</div>
<div> ipa               IPA diagnostic information</div>
<div> ipsec             ipsec related information</div>
<div> iscsitarget       iscsi-target related information</div>
<div> kernel_realtime   Information specific to the realtime kernel</div>
<div> kvm               KVM related information</div>
<div> named             named related information</div>
<div> netdump           Netdump Configuration Information</div>
<div> nfsserver         NFS server-related information</div>
<div> oddjob            oddjob related information</div>
<div> pxe               PXE related information</div>
<div> qpidd             Messaging related information</div>
<div> quagga            quagga related information</div>
<div> rhn               RHN Satellite related information</div>
<div> rhui              Red Hat Update Infrastructure for Cloud Providers</div>
<div> s390              s390 related information</div>
<div> sanitize          sanitize specified log files, etc</div>
<div> sanlock           sanlock-related information</div>
<div> soundcard         Sound card information</div>
<div> squid             squid related information</div>
<div> tftpserver        tftpserver related information</div>
<div> tomcat            Tomcat related information</div>
<div> veritas           veritas related information</div>
<div> vmware            VMWare related information</div>
<div> xen               Xen related information</div>
<div> </div>
<div>The following plugin options are available:</div>
<div> </div>
<div> apache.log            off gathers all apache logs</div>
<div> auditd.syslogsize     15 max size (MiB) to collect per syslog file</div>
<div> devicemapper.lvmdump  off collect an lvmdump</div>
<div> devicemapper.lvmdump-am off attempt to collect an lvmdump with advanced options and raw metadata collection</div>
<div> filesys.dumpe2fs      off dump filesystem information</div>
<div> general.syslogsize    15 max size (MiB) to collect per syslog file</div>
<div> general.all_logs      off collect all log files defined in syslog.conf</div>
<div> kernel.modinfo        on gathers information on all kernel modules</div>
<div> libraries.ldconfigv   off the name of each directory as it is scanned, and any links that are created.</div>
<div> networking.traceroute off collects a traceroute to linux.oracle.com</div>
<div> nscd.nscdlogsize      50 max size (MiB) to collect per nscd log file</div>
<div> openswan.ipsec-barf   off collect the output of the ipsec barf command</div>
<div> pgsql.pghome          /var/lib/pgsql PostgreSQL server home directory (default=/var/lib/pgsql)</div>
<div> pgsql.username        off username for pg_dump (default=postgres)</div>
<div> pgsql.password        off password for pg_dump (default=None)</div>
<div> pgsql.dbname          off database name to dump for pg_dump (default=None)</div>
<div> pgsql.dbhost          off hostname/IP of the server upon which the DB is running (default=localhost)</div>
<div> pgsql.dbport          off database server port number (default=5432)</div>
<div> printing.cups         50 max size (MiB) to collect per cups log file</div>
<div> psacct.all            off collect all process accounting files</div>
<div> rpm.rpmq              on queries for package information via rpm -q</div>
<div> rpm.rpmva             off runs a verify on all packages</div>
<div> selinux.fixfiles      off Print incorrect file context labels</div>
<div> selinux.list          off List objects and their context</div>
<div> startup.servicestatus off get a status of all running services</div>
<div> yum.yumlist           off list repositories and packages</div>
<div> yum.yumdebug          off gather yum debugging data</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><b><u>WITH ONLY O FLAG:</u></b></div>
<div> </div>
<div>[bcollins@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</div>
<div> </div>
<div>sosreport (version 2.2)</div>
<div> </div>
<div>The following plugins are currently enabled:</div>
<div> </div>
<div> anaconda        Anaconda / Installation information</div>
<div> apache          Apache related information</div>
<div> bootloader      Bootloader information</div>
<div> crontab         Crontab information</div>
<div> filesys         information on filesystems</div>
<div> general         basic system information</div>
<div> hardware        hardware related information</div>
<div> kernel          kernel related information</div>
<div> libraries       information on shared libraries</div>
<div> lsbrelease      Linux Standard Base information</div>
<div> memory          memory usage information</div>
<div> networking      network related information</div>
<div> nscd            NSCD related information</div>
<div> ntp             NTP related information</div>
<div> openssl         openssl related information</div>
<div> pam             PAM related information</div>
<div> process         process information</div>
<div> rhn             RHN Satellite related information</div>
<div> rpm             RPM information</div>
<div> sar             Generate the sar file from /var/log/sa/saXX files</div>
<div> sendmail        sendmail information</div>
<div> snmp            snmp related information</div>
<div> ssh             ssh-related information</div>
<div> startup         startup information</div>
<div> system          core system related information</div>
<div> tomcat          Tomcat related information</div>
<div> udev            udev related information</div>
<div> xinetd          xinetd information</div>
<div> yum             yum information</div>
<div> </div>
<div>The following plugins are currently disabled:</div>
<div> </div>
<div> acpid             acpid related information</div>
<div> amd               Amd automounter information</div>
<div> auditd            Auditd related information</div>
<div> autofs            autofs server-related information</div>
<div> cgroups           cgroup subsystem information</div>
<div> cloudforms        CloudForms related information</div>
<div> cluster           cluster suite and GFS related information</div>
<div> cobbler           cobbler related information</div>
<div> corosync          corosync information</div>
<div> cs                Certificate System 7.x Diagnostic Information</div>
<div> devicemapper      device-mapper related information (dm, lvm, multipath)</div>
<div> dhcp              DHCP related information</div>
<div> dovecot           dovecot server related information</div>
<div> ds                Directory Server information</div>
<div> emc               EMC related information (PowerPath, Solutions Enabler CLI and Navisphere CLI)</div>
<div> foreman           Foreman related information</div>
<div> ftp               FTP server related information</div>
<div> gdm               gdm related information</div>
<div> gluster           gluster related information</div>
<div> hts               Red Hat Hardware Test Suite related information</div>
<div> i18n              i18n related information</div>
<div> infiniband        Infiniband related information</div>
<div> initrd            initrd related information</div>
<div> ipa               IPA diagnostic information</div>
<div> ipsec             ipsec related information</div>
<div> iscsi             iscsi-initiator related information</div>
<div> iscsitarget       iscsi-target related information</div>
<div> kdump             Kdump related information</div>
<div> kernel_realtime   Information specific to the realtime kernel</div>
<div> krb5              Samba related information</div>
<div> kvm               KVM related information</div>
<div> ldap              LDAP related information</div>
<div> libvirt           libvirt-related information</div>
<div> logrotate         logrotate configuration files and debug info</div>
<div> mrggrid           MRG GRID related information</div>
<div> mrgmessg          MRG Messaging related information</div>
<div> mysql             MySQL related information</div>
<div> named             named related information</div>
<div> netdump           Netdump Configuration Information</div>
<div> nfs               NFS related information</div>
<div> nfsserver         NFS server-related information</div>
<div> oddjob            oddjob related information</div>
<div> openhpi           OpenHPI related information</div>
<div> openswan          ipsec related information</div>
<div> pgsql             PostgreSQL related information</div>
<div> postfix           mail server related information</div>
<div> ppp               ppp, wvdial and rp-pppoe related information</div>
<div> printing          printing related information (cups)</div>
<div> psacct            Process accounting related information</div>
<div> pxe               PXE related information</div>
<div> qpidd             Messaging related information</div>
<div> quagga            quagga related information</div>
<div> radius            radius related information</div>
<div> rhui              Red Hat Update Infrastructure for Cloud Providers</div>
<div> s390              s390 related information</div>
<div> samba             Samba related information</div>
<div> sanitize          sanitize specified log files, etc</div>
<div> sanlock           sanlock-related information</div>
<div> selinux           selinux related information</div>
<div> smartcard         Smart Card related information</div>
<div> soundcard         Sound card information</div>
<div> squid             squid related information</div>
<div> sssd              sssd-related Diagnostic Information</div>
<div> sunrpc            Sun RPC related information</div>
<div> systemtap         SystemTap information</div>
<div> tftpserver        tftpserver related information</div>
<div> veritas           veritas related information</div>
<div> vmware            VMWare related information</div>
<div> x11               X related information</div>
<div> xen               Xen related information</div>
<div> </div>
<div>The following plugin options are available:</div>
<div> </div>
<div> apache.log            off gathers all apache logs</div>
<div> filesys.dumpe2fs      off dump filesystem information</div>
<div> general.syslogsize    15 max size (MiB) to collect per syslog file</div>
<div> general.all_logs      off collect all log files defined in syslog.conf</div>
<div> kernel.modinfo        on gathers information on all kernel modules</div>
<div> libraries.ldconfigv   off the name of each directory as it is scanned, and any links that are created.</div>
<div> networking.traceroute off collects a traceroute to linux.oracle.com</div>
<div> nscd.nscdlogsize      50 max size (MiB) to collect per nscd log file</div>
<div> rhn.log               off gathers all apache logs</div>
<div> rpm.rpmq              on queries for package information via rpm -q</div>
<div> rpm.rpmva             off runs a verify on all packages</div>
<div> startup.servicestatus off get a status of all running services</div>
<div> yum.yumlist           off list repositories and packages</div>
<div> yum.yumdebug          off gather yum debugging data</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>-----Original Message-----<br>

From: Bryn M. Reeves [<a href="mailto:bmr@redhat.com"><font color="blue"><u>mailto:bmr@redhat.com</u></font></a>]
<br>

Sent: Tuesday, September 29, 2015 5:45 AM<br>

To: Collins, Brian (GE Corporate, consultant)<br>

Cc: <a href="mailto:sos-devel@redhat.com"><font color="blue"><u>sos-devel@redhat.com</u></font></a><br>

Subject: Re: [sos-devel] question about configuration file</div>
<div> </div>
<div>On Mon, Sep 28, 2015 at 08:52:09PM +0000, Collins, Brian (GE Corporate, consultant) wrote:</div>
<div>> Is it possible to config a sos.conf with the equivalent -o option from the command line?</div>
<div> </div>
<div>Hi Brian,</div>
<div> </div>
<div>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).</div>
<div> </div>
<div>There is an example of this use in the default sos.conf that is installed by most distribution packages:</div>
<div> </div>
<div>  [tunables]</div>
<div> </div>
<div>  #rpm.rpmva = off</div>
<div>  #general.syslogsize = 15</div>
<div> </div>
<div>To enable the examples just uncomment the line (remove the '#') and re-run sosreport.</div>
<div> </div>
<div>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',</div>
<div>e.g.:</div>
<div> </div>
<div>  <a href="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">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</a>=
</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>> I have not seen a full options list for the sos.conf. and finding one seems next to impossible....</div>
<div> </div>
<div>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):</div>
<div>'[plugins]' (for disabling plugins), and '[tunables]' (for setting plugin options).</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>You can find all the sos manual pages online as entries in the upstream</div>
<div>wiki:</div>
<div> </div>
<div>  <a href="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_sos.conf.5&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=huHvbYc8jLmac4H0JfUWBWRJCsM-LDv1EG62dEUa6QU&s=WXGQgbgQnDCyVN6r4GOIBW1lmCeTCtRGanZjKA7m4ck&e</a>=</div>
<div>  <a href="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">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</a>=
</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Regards,</div>
<div>Bryn.</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>