{"id":442,"date":"2010-03-01T01:43:41","date_gmt":"2010-03-01T06:43:41","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=442"},"modified":"2010-06-16T14:10:14","modified_gmt":"2010-06-16T19:10:14","slug":"how-to-gather-and-send-support-info-on-a-suse-system","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=442","title":{"rendered":"How to gather and send support info on a Suse system&#8230;"},"content":{"rendered":"<p>To help someone (like me, for instance) remotely diagnose your Suse system, sometimes you need to send him or her diagnostic info from that system.\u00a0 Fortunately, Suse has a toolset called &#8220;<code>supportutils<\/code>&#8221; to do just that.\u00a0 This article outlines one of my preferred ways of generating and sending such info.\u00a0 Note that the examples in this article are targeted toward my existing customers, but you can obviously change the examples to suit.\u00a0 Or, you can *become* a customer&#8230;\u00a0 \ud83d\ude09<\/p>\n<p>First, <code>su<\/code> to <code>root<\/code>, and check to see if the support utilities and <code>sysstat<\/code> package are installed:<\/p>\n<pre><code>zypper se sysstat supportutils <\/code><\/pre>\n<p>&#8230;if the result for each has an &#8220;i&#8221; (for &#8220;installed&#8221;) at the far left of the package, it is already installed.\u00a0 Otherwise, if the package(s) are not already installed, run this to install the <code>sysstat<\/code> package and the support utilities included with your Suse distro:<\/p>\n<pre><code>zypper in sysstat supportutils<\/code><\/pre>\n<p>Or, if you wish to run the latest version of the <code>supportutils<\/code> package (see &#8220;comment&#8221; below about versions), run this to install\/upgrade to the latest version at the time of this writing:<\/p>\n<pre><code>rpm -Uvh http:\/\/download.opensuse.org\/repositories\/Novell:\/NTS\/SLE_10\/noarch\/supportutils-1.20-1.1.noarch.rpm<\/code><\/pre>\n<p>(Please see the Supportutils project page at <a title=\"http:\/\/en.opensuse.org\/Supportutils\" href=\"http:\/\/en.opensuse.org\/Supportutils\" target=\"_blank\">http:\/\/en.opensuse.org\/Supportutils<\/a> for the latest info and versions.)<\/p>\n<p>COMMENT:\u00a0 Unfortunately, I have discovered that the info collection part of some modules seems to be broken on some versions; I&#8217;m not sure why.\u00a0 You&#8217;ll know they need to be skipped if you run the tool and it hangs for a long time.\u00a0 I&#8217;ve seen the DNS module hang on most systems with the older package, the SYSFS module hang on Opensuse with the latest version, the NSS modules hang on OES servers, and so forth.\u00a0 Personally, and take this for what it&#8217;s worth, I like the distro-provided supportutils package on OpenSuse, and the latest download-able on available for SLES10 and\/or OES servers&#8230; all with the caveats, of course&#8230;<\/p>\n<p>So, to get around the sticking\/hanging problem, we need to modify the configuration file to skip the info collection for those modules that get stuck\u00a0 (of course, it is also possible that you want to modify the config file to exclude certain things for other reasons, as well).\u00a0 For this example, I disable the DNS info collection (which has since been repaired in newer versions).\u00a0 You can do it interactively with vi or gedit like this:<\/p>\n<pre><code>vi \/etc\/supportconfig.conf<\/code><\/pre>\n<p>&#8230;(or via gui, gedit \/etc\/supportconfig.conf) and change this line:<\/p>\n<pre><code>OPTION_DNS=1<\/code><\/pre>\n<p>&#8230;to&#8230;<\/p>\n<pre><code>OPTION_DNS=0<\/code><\/pre>\n<p>&#8230;or do it non-interactively with this example command set:<\/p>\n<pre><code>mv \/etc\/supportconfig.conf \/etc\/supportconfig.conf.bak\r\nsed s\/OPTION_DNS\\=1\/OPTION_DNS\\=0\/ \/etc\/supportconfig.conf.bak &gt; \/etc\/supportconfig.conf<\/code><\/pre>\n<p>Now back to the program; whether you upgraded, modified the config file, or not&#8230;.<\/p>\n<p>Next, create the output with this command:<\/p>\n<pre><code>supportconfig<\/code><\/pre>\n<p>When completed, it gives you a nice info summary.\u00a0 One of the first lines in the summary is the resulting tar ball file size.\u00a0 If it is reasonably small, like under 10MB, feel free to send it to me via email it to me this way (if it is larger than 10MB, I can provide an alternate method of delivery):<\/p>\n<pre><code>echo \"See attached.\" | mailx -a \/var\/log\/nts<\/code>*`date +%y%m%d_%H`*.tbz<code> -s \"Support Config file from $HOSTNAME\" jpavlov@yourLinuxGuy.com<\/code><\/pre>\n<p>&#8230;Note that the above command will send all of the result files that were generated in the current hour; you can take off the &#8220;%H&#8221; if the file you wish to send was generated in a different clock hour.<\/p>\n<p>If you&#8217;re curious, when I get it, I download from my email and unzip it in a temp directory for review:<\/p>\n<pre><code>cd \/tmp\/support\r\ntar -jxvf nts_lt1101010_100106_1010.tbz<\/code><\/pre>\n<p>And that&#8217;s it!\u00a0  I hope it helps.\u00a0  And, I hope I can help you&#8230;<br \/>\n\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To help someone (like me, for instance) remotely diagnose your Suse system, sometimes you need to send him or her diagnostic info from that system.\u00a0 Fortunately, Suse has a toolset called &#8220;supportutils&#8221; to do just that.\u00a0 This article outlines one&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=442\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10,84,15],"tags":[],"class_list":["post-442","post","type-post","status-publish","format-standard","hentry","category-introductory","category-supportconfig","category-suse"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-78","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=442"}],"version-history":[{"count":19,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/442\/revisions"}],"predecessor-version":[{"id":516,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/442\/revisions\/516"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}