-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathadm_support.xml
More file actions
1774 lines (1740 loc) · 62.1 KB
/
adm_support.xml
File metadata and controls
1774 lines (1740 loc) · 62.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!DOCTYPE chapter [
<!ENTITY % entities SYSTEM "generic-entities.ent">
%entities;
]>
<!--
Interesting FATE entries:
* #302163: A Bug Reporting Wizard
* #303705: Unify system characterization tooling
(SLED-11-SP1/SLES-11-SP1)
According to the FATE entries, it seems the tools sitar, siga,
and supportconfig will be obsolete in the future(?)
* Diffing of Packages:
osc co, apply patches with quilt for sp1 and sp2,
-> mweckbecker, ptesarik
Info Provider:
* swehnert
* jrecord
* fhassel
-->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="cha-adm-support">
<!-- support: sitar / onstar, siga, supportconfig -->
<!-- taroth 2014-04-24: http://fate.suse.com/315699,
http://bugzilla.suse.com/show_bug.cgi?id=871928-->
<title>Gathering System Information for Support</title>
<info>
<meta name="description">Learn about accessing detailed system information, creating problem reports, and analyzing SupportConfig output with SUSE tools</meta>
<abstract>
<para>
For a quick overview of all relevant system information of a machine,
&productname; offers the
<systemitem class="systemname">hostinfo</systemitem> package. It also helps
system administrators to check for tainted kernels (that are not supported)
or any third-party packages installed on a machine.
</para>
<para>
In case of problems, a detailed system report may be created with either
the <command>supportconfig</command> command line tool or the &yast;
<guimenu>Support</guimenu> module. Both will collect information about the
system such as: current kernel version, hardware, installed packages,
partition setup, and much more. The result is a TAR archive of files. After
opening a Service Request (SR), you can upload the TAR archive to Global
Technical Support. It will help to locate the issue you reported and to
assist you in solving the problem.
</para>
<para>
Additionally, you can analyze the <command>supportconfig</command> output
for known issues to help resolve problems faster. For this purpose,
&productname; provides both an appliance and a command line tool for
<literal>Supportconfig Analysis</literal> (SCA).
</para>
</abstract>
<dm:docmanager xmlns:dm="urn:x-suse:ns:docmanager">
<dm:bugtracker/>
<dm:translation>yes</dm:translation>
</dm:docmanager>
<revhistory xml:id="rh-cha-adm-support">
<revision>
<date>2026-04-09</date>
<revdescription>
<para/>
</revdescription>
</revision>
</revhistory>
</info>
<!-- support: sitar / onstar, siga, supportconfig -->
<sect1 xml:id="sec-admsupport-hostinfo">
<title>Displaying Current System Information</title>
<!--<remark>toms 2014-03-12: FATE#315869</remark>-->
<para>
For a quick and easy overview of all relevant system information when
logging in to a server, use the package
<systemitem class="systemname">hostinfo</systemitem>. After it has been
installed on a machine, the console displays the following information to
any &rootuser; user that logs in to this machine:
</para>
<example xml:id="ex-support-hostinfo">
<title>Output of <command>hostinfo</command> When Logging In as &rootuser;</title>
<screen>Hostname: &exampleclient;
Current As Of: Fri 28 Sep 2018 03:18:57 PM CEST
Distribution: SUSE Linux Enterprise Server 12
-Service Pack: 4
Architecture: x86_64
Kernel Version: 4.12.14-94.37-default
-Installed: Mon 24 Sep 2018 10:43:46 AM CEST
-Status: Not Tainted
Last Updated Package: Fri 28 Sep 2018 03:18:55 PM CEST
-Patches Needed: 0
-Security: 0
-3rd Party Packages: 0
IPv4 Address: eth0 &exampledomain1ip;.1
Total/Free/+Cache Memory: 1812/360/1275 MB (70% Free)
Hard Disk: /dev/sda 32 GB</screen>
</example>
<para>
In case the output shows a <literal>tainted</literal> kernel status, see
<xref linkend="sec-admsupport-kernel"/> for more details.
</para>
</sect1>
<sect1 xml:id="sec-admsupport-supportconfig">
<title>Collecting System Information with Supportconfig</title>
<para>
To create a TAR archive with detailed system information that you can hand
over to Global Technical Support, use either the
<command>supportconfig</command> command line tool directly or the &yast;
<guimenu>Support</guimenu> module. The command line tool is provided by the
package <systemitem>supportutils</systemitem> which is installed by default.
The &yast; <guimenu>Support</guimenu> module is also based on the command
line tool.
</para>
<sect2 xml:id="sec-admsupport-supportconfig-sr">
<title>Creating a Service Request Number</title>
<para>
Supportconfig archives can be generated at any time. However, for
handing over the supportconfig data to Global Technical Support, you need
to generate a service request number first. You will need it to upload the
archive to support.
</para>
<para>
To create a service request, go to
<link xlink:href="https://scc.suse.com/support/requests"/> and follow the
instructions on the screen. Write down your 12-digit service request
number.
</para>
<note>
<title>Privacy Statement</title>
<para>
&suse; and Micro Focus treat system reports as confidential data. For
details about our privacy commitment, see <link xlink:href="https://www.suse.com/company/policies/privacy/"/>.
</para>
</note>
</sect2>
<sect2 xml:id="sec-admsupport-yast">
<title>Creating a Supportconfig Archive with &yast;</title>
<para>
To use &yast; to gather your system information, proceed as follows:
<remark>2008-11-20 toms: YaST asks the user to open a URL as
root(!). This happens when the users clicks on "Open" (Open
Support Center/ This will start a browser with
Support Center Portal). I do not think we should describe this
and only *use* the above URL as a normal user for security
reasons.</remark>
</para>
<procedure>
<step>
<para>
Start &yast; and open the <guimenu>Support</guimenu> module.
</para>
<informalfigure>
<mediaobject>
<textobject role="description">
<phrase>&yast; support module</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="yast2-support-main.png" width="70%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="yast2-support-main.png" width="60%"/>
</imageobject>
</mediaobject>
</informalfigure>
</step>
<step>
<para>
Click <guimenu>Create report tarball</guimenu>.
</para>
</step>
<step>
<para>
In the next window, select one of the supportconfig options from the
radio button list. <guimenu>Use Custom (Expert) Settings</guimenu> is
preselected by default. If you want to test the report function first,
use <guimenu>Only gather a minimum amount of info</guimenu>. For some
background information on the other options, refer to the
<command>supportconfig</command> man page.
</para>
<para>
Proceed with <guimenu>Next</guimenu>.
</para>
</step>
<step xml:id="step-supportconfig-contact">
<para>
Enter your contact information. It will be written to a file called
<filename>basic-environment.txt</filename> and included in the archive to
be created.
</para>
</step>
<step xml:id="step-supportconfig-upload-target">
<para>
If you want to submit the archive to Global Technical Support at the end
of the information collection process, <guimenu>Upload
Information</guimenu> is required. &yast; automatically proposes an
upload server.
</para>
<para>
If you want to submit the archive later on, you can leave the
<guimenu>Upload Information</guimenu> empty for now.
</para>
</step>
<step>
<para>
Proceed with <guimenu>Next</guimenu>.
</para>
</step>
<step>
<para>
The information gathering begins.
</para>
<informalfigure>
<mediaobject>
<textobject role="description">
<phrase>&yast; support configuration</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="yast2-support-conf.png" width="90%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="yast2-support-conf.png" width="80%"/>
</imageobject>
</mediaobject>
</informalfigure>
<para>
After the process is finished, continue with <guimenu>Next</guimenu>.
</para>
</step>
<step>
<para>
Review the data collection: Select the <guimenu>File Name</guimenu> of a
log file to view its contents in &yast;. To remove any files you want
excluded from the TAR archive before submitting it to support, use
<guimenu>Remove from Data</guimenu>. Continue with
<guimenu>Next</guimenu>.
</para>
</step>
<step>
<para>
Save the TAR archive. If you started the &yast; module as &rootuser;
user, by default &yast; proposes to save the archive to
<filename>/var/log</filename> (otherwise, to your home directory). The
file name format is
<filename>nts_<replaceable>HOST</replaceable>_<replaceable>DATE</replaceable>_<replaceable>TIME</replaceable>.tbz</filename>.
</para>
</step>
<step>
<para>
If you want to upload the archive to support directly, make sure
<guimenu>Upload log files tarball to URL</guimenu> is activated. The
<guimenu>Upload Target</guimenu> shown here is the one that &yast;
proposes in <xref linkend="step-supportconfig-upload-target"/>.
</para>
</step>
<step>
<para>
If you want to skip the upload, deactivate <guimenu>Upload log files
tarball to URL</guimenu>.
</para>
</step>
<step>
<para>
Confirm your changes to close the &yast; module.
</para>
</step>
</procedure>
</sect2>
<sect2 xml:id="sec-admsupport-cli">
<title>Creating a Supportconfig Archive from Command Line</title>
<para>
The following procedure shows how to create a supportconfig archive, but
without submitting it to support directly. For uploading it, you need to
run the command with certain options as described in
<xref linkend="pro-admsupport-submit-cli"/>.
</para>
<procedure>
<step>
<para>
Open a shell and become <systemitem class="username">root</systemitem>.
</para>
</step>
<step>
<para>
Run <command>supportconfig</command> without any options. This gathers
the default system information.
</para>
</step>
<step>
<para>
Wait for the tool to complete the operation.
</para>
</step>
<step>
<para>
The default archive location is <filename>/var/log</filename>, with the
file name format being
<filename>nts_<replaceable>HOST</replaceable>_<replaceable>DATE</replaceable>_<replaceable>TIME</replaceable>.tbz</filename>
</para>
</step>
</procedure>
</sect2>
<sect2 xml:id="sec-admsupport-options">
<title>Common Supportconfig Options</title>
<para>
The <command>supportconfig</command> utility is usually called without any
options. Display a list of all options with
<command>supportconfig</command> <option>-h</option> or refer to the man
page. The following list gives a brief overview of some common use cases:
</para>
<variablelist>
<varlistentry>
<term>Reducing the Size of the Information Being Gathered</term>
<listitem>
<para>
Use the minimal option (<option>-m</option>):
</para>
<screen>supportconfig -m</screen>
</listitem>
</varlistentry>
<varlistentry>
<term>Limiting the Information to a Specific Topic</term>
<listitem>
<para>
If you have already localized a problem with the default
<command>supportconfig</command> output and have found that it relates
to a specific area or feature set only, you should limit the collected
information to the specific area for the next
<command>supportconfig</command> run. For example, if you detected
problems with LVM and want to test a recent change that you did to the
LVM configuration, it makes sense to gather the minimum supportconfig
information around LVM only:
</para>
<screen>supportconfig -i LVM</screen>
<para>
For a complete list of feature keywords that you can use for limiting
the collected information to a specific area, run
</para>
<screen>supportconfig -F</screen>
</listitem>
</varlistentry>
<varlistentry>
<term>Including Additional Contact Information in the Output:</term>
<listitem>
<screen>supportconfig -E tux@example.org -N "Tux Penguin" -O<!--
--> "Penguin Inc." ...</screen>
<para>
(all in one line)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Collecting Already Rotated Log Files</term>
<listitem>
<screen>supportconfig -l</screen>
<para>
This is especially useful in high logging environments or after a kernel
crash when syslog rotates the log files after a reboot.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>
<sect1 xml:id="sec-admsupport-submit">
<title>Submitting Information to Global Technical Support</title>
<para>
Use the &yast; <guimenu>Support</guimenu> module or the
<command>supportconfig</command> command line utility to submit system
information to the Global Technical Support. When you experience a server
issue and want the support's assistance, you will need to open a service
request first. For details, see
<xref linkend="sec-admsupport-supportconfig-sr"/>.
</para>
<para>
The following examples use <replaceable>12345678901</replaceable> as a
placeholder for your service request number. Replace
<replaceable>12345678901</replaceable> with the service request number you
created in <xref linkend="sec-admsupport-supportconfig-sr"/>.
</para>
<procedure xml:id="pro-admsupport-submit-yast">
<title>Submitting Information to Support with &yast;</title>
<para>
The following procedure assumes that you have already created a
supportconfig archive, but have not uploaded it yet. Make sure to have
included your contact information in the archive as described in
<xref linkend="sec-admsupport-yast"/>,
<xref linkend="step-supportconfig-contact" xrefstyle="select:label nopage"/>.
For instructions on how to generate and submit a supportconfig archive in
one go, see <xref linkend="sec-admsupport-yast"/>.
</para>
<step>
<para>
Start &yast; and open the <guimenu>Support</guimenu> module.
</para>
</step>
<step>
<para>
Click <guimenu>Upload</guimenu>.
</para>
</step>
<step>
<para>
In <guimenu>Package with log files</guimenu> specify the path to the
existing supportconfig archive or <guimenu>Browse</guimenu> for it.
</para>
</step>
<step xml:id="step-supportcfg-submit-upltarget">
<para>
&yast; automatically proposes an upload server.
</para>
<informalfigure>
<mediaobject>
<textobject role="description">
<phrase>&yast; configuration upload</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="yast2-support-conf-upload.png" width="70%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="yast2-support-conf-upload.png" width="60%"/>
</imageobject>
</mediaobject>
</informalfigure>
<para>
<remark>taroth 2014-04-11: this does not make sense to me - why does the
YaST module *not* ask for the SR number now? and lets you continue after
specifying an upload target (but no RC or customer info)? I would
expect it to *check* if an SR has been entered and otherwise show an error
message - filed http://bugzilla.suse.com/show_bug.cgi?id=880943 for this, unfortunately it
was rejected for technical reasons</remark>
Proceed with <guimenu>Next</guimenu>.
</para>
</step>
<step>
<para>
Click <guimenu>Finish</guimenu>.
</para>
</step>
</procedure>
<procedure xml:id="pro-admsupport-submit-cli">
<title>Submitting Information to Support from Command Line</title>
<para>
The following procedure assumes that you have already created a
supportconfig archive, but have not uploaded it yet. For instructions on
how to generate and submit a supportconfig archive in one go, see
<xref linkend="sec-admsupport-yast"/>.
</para>
<step>
<para>
Servers with Internet connectivity:
</para>
<substeps performance="required">
<step>
<para>
To use the default upload target, run:
</para>
<screen>supportconfig -ur <replaceable>12345678901</replaceable></screen>
</step>
<step>
<para>
For the secure upload target, use the following:
</para>
<!--taroth 2014-04-04: bnc#871918-->
<screen>supportconfig -ar <replaceable>12345678901</replaceable></screen>
</step>
</substeps>
</step>
<step>
<para>
Servers <emphasis>without</emphasis> Internet connectivity
</para>
<substeps performance="required">
<step>
<para>
Run the following:
</para>
<screen>supportconfig -r <replaceable>12345678901</replaceable></screen>
</step>
<step>
<para>
Manually upload the
<filename>/var/log/nts_<replaceable>SR12345678901</replaceable>*tbz</filename>
archive to one of our FTP servers. For more information, see the man page
of <command>supportconfig</command>.
</para>
</step>
</substeps>
</step>
<step>
<para>
After the TAR archive arrives in the incoming directory of our FTP server,
it becomes automatically attached to your service request.
</para>
</step>
</procedure>
</sect1>
<!-- taroth 2014-04-24: http://fate.suse.com/315699,
http://bugzilla.suse.com/show_bug.cgi?id=871928-->
<sect1 xml:id="sec-admsupport-sca">
<title>Analyzing System Information</title>
<para>
System reports created with <command>supportconfig</command> can be analyzed
for known issues to help resolve problems faster. For this purpose,
&productname; provides both an appliance and a command line tool for
<literal>Supportconfig Analysis</literal> (SCA). The SCA appliance is a
server-side tool which is non-interactive. The SCA tool
(<command>scatool</command>) runs on the client-side and is executed from
command line. Both tools analyze supportconfig archives from affected
servers. The initial server analysis takes place on the SCA appliance or the
workstation on which scatool is running. No analysis cycles happen on the
production server.
</para>
<para>
Both the appliance and the command line tool additionally need
product-specific patterns that enable them to analyze the supportconfig
output for the associated products. Each pattern is a script that parses and
evaluates a supportconfig archive for one known issue. The patterns are
available as RPM packages.
</para>
<para>
For example, if you want to analyze supportconfig archives that have been
generated on a &sle; 11 machine, you need to install the package
<systemitem class="resource">sca-patterns-sle11</systemitem> together with
the SCA tool (or on the machine that you want to use as the SCA appliance
server). To analyze supportconfig archives generated on a &sle; 10 machine,
you need the package
<systemitem class="resource">sca-patterns-sle10</systemitem>.
</para>
<para>
You can also develop your own patterns as briefly described in
<xref linkend="sec-admsupport-sca-patterns"/>.
</para>
<sect2 xml:id="sec-admsupport-sca-tool">
<title>SCA Command Line Tool</title>
<para>
The SCA command line tool lets you analyze a local machine using both
<command>supportconfig</command> and the analysis patterns for the specific
product that is installed on the local machine. The tool creates an HTML
report showing its analysis results. For an example, see
<xref linkend="fig-scatool-html"/>.
</para>
<figure xml:id="fig-scatool-html">
<title>HTML Report Generated by SCA Tool</title>
<mediaobject>
<imageobject role="fo">
<imagedata fileref="sca_tool_report_html.png" width="100%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="sca_tool_report_html.png" width="100%"/>
</imageobject>
</mediaobject>
</figure>
<para>
The <command>scatool</command> command is provided by the
<systemitem class="resource">sca-server-report</systemitem> package. It is
not installed by default. Additionally, you need the
<systemitem class="resource">sca-patterns-base</systemitem> package and any
of the product-specific
<systemitem class="resource">sca-patterns-*</systemitem> packages that
matches the product installed on the machine where you want to run the
<command>scatool</command> command.
</para>
<para>
Execute the <command>scatool</command> command either as &rootuser; user or
with <command>sudo</command>. When calling the SCA tool, you can either
analyze an existing <command>supportconfig</command> TAR archive or you can
let it generate and analyze a new archive in one go. The tool also provides
an interactive console (with tab completion) and the possibility to run
<command>supportconfig</command> on an external machine and to execute the
subsequent analysis on the local machine.
</para>
<para>
Find some example commands below:
</para>
<variablelist>
<varlistentry>
<term><command>sudo scatool</command><option>-s</option>
</term>
<listitem>
<para>
Calls <command>supportconfig</command> and generates a new supportconfig
archive on the local machine. Analyzes the archive for known issues by
applying the SCA analysis patterns that match the installed product.
Displays the path to the HTML report that is generated from the results
of the analysis. It is usually written to the same directory where the
supportconfig archive can be found.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>sudo scatool </command><option>-s</option> <option>-o</option> <replaceable>/opt/sca/reports/</replaceable>
</term>
<listitem>
<para>
Same as <command>sudo scatool</command> <option>-s</option>, only that
the HTML report is written to the path specified with
<option>-o</option>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>sudo scatool </command><option>-a</option> <replaceable>PATH_TO_TARBALL_OR_DIR</replaceable>
</term>
<listitem>
<para>
Analyzes the specified supportconfig archive file (or the specified
directory to where the supportconfig archive has been extracted). The
generated HTML report is saved in the same location as the supportconfig
archive or directory.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>sudo scatool </command><option>-a</option> <replaceable>SLES_SERVER.COMPANY.COM</replaceable>
</term>
<listitem>
<para>
Establishes an SSH connection to an external server
<replaceable>SLES_SERVER.COMPANY.COM</replaceable> and runs
<command>supportconfig</command> on the server. The supportconfig
archive is then copied back to the local machine and is analyzed there.
The generated HTML report is saved to the default
<filename>/var/log</filename> directory. (Only the supportconfig archive
is created on <replaceable>SLES_SERVER.COMPANY.COM</replaceable>).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>sudo scatool</command><option>-c</option>
</term>
<listitem>
<para>
Starts the interactive console for <command>scatool</command>. Press
<keycap function="tab"/> twice to see the available commands.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
For further options and information, run <command>sudo scatool -h</command>
or see the <command>scatool</command> man page.
</para>
</sect2>
<sect2 xml:id="sec-admsupport-sca-appliance">
<title>SCA Appliance</title>
<para>
If you decide to use the SCA appliance for analyzing the supportconfig
archives, you need to configure a dedicated server (or virtual machine) as
the SCA appliance server. The SCA appliance server can then be used to
analyze supportconfig archives from all machines in your enterprise running
&sls; or &sled;. You can simply upload supportconfig archives to the
appliance server for analysis. Interaction is not required. In a MariaDB
database, the SCA appliance keeps track of all supportconfig archives that
have been analyzed . You can read the SCA reports directly from the
appliance Web interface. Alternatively, you can have the appliance send the
HTML report to any administrative user via e-mail. For details, see
<xref linkend="sec-admsupport-sca-appliance-config-mail"/>.
</para>
<sect3 xml:id="sec-admsupport-sca-appliance-installquick">
<title>Installation Quick Start</title>
<para>
To install and set up the SCA appliance in a very fast way from the
command line, follow the instructions here. The procedure is intended for
experts and focuses on the bare installation and setup commands. For more
information, refer to the more detailed description in
<xref linkend="sec-admsupport-sca-appliance-pre"/> to
<xref linkend="sec-admsupport-sca-appliance-install"/>.
</para>
<itemizedlist mark="bullet" spacing="normal">
<title>Prerequisites</title>
<listitem>
<para>
Web and LAMP Pattern
</para>
</listitem>
<listitem>
<para>
Web and Scripting Module (you must register the machine to be able to
select this module).
</para>
</listitem>
</itemizedlist>
<note>
<title>&rootuser; Privileges Required</title>
<para>
All commands in the following procedure must be run as &rootuser;.
</para>
</note>
<procedure>
<title>Installation Using Anonymous FTP for Upload</title>
<para>
After the appliance is set up and running, no more manual interaction is
required. This way of setting up the appliance is therefore ideal for
using cron jobs to create and upload supportconfig archives.
</para>
<step>
<para>
On the machine on which to install the appliance, log in to a console
and execute the following commands:
</para>
<screen>zypper install sca-appliance-* sca-patterns-* vsftpd
systemctl enable apache2
systemctl start apache2
systemctl enable vsftpd
systemctl start vsftpd
yast ftp-server</screen>
</step>
<step>
<para>
In &yast; FTP Server, select <menuchoice>
<guimenu>Authentication</guimenu> <guimenu>Enable Upload</guimenu>
<guimenu>Anonymous Can Upload</guimenu> <guimenu>Finish</guimenu>
<guimenu>Yes</guimenu> </menuchoice> to <guimenu>Create
/srv/ftp/upload</guimenu>.
</para>
</step>
<step>
<para>
Execute the following commands:
</para>
<screen>systemctl enable mysql
systemctl start mysql
mysql_secure_installation
setup-sca -f</screen>
<para>
The mysql_secure_installation will create a MariaDB &rootuser; password.
</para>
</step>
</procedure>
<procedure>
<title>Installation Using SCP/tmp for Upload</title>
<para>
This way of setting up the appliance requires manual interaction when
typing the SSH password.
</para>
<step>
<para>
On the machine on which to install the appliance, log in to a console.
</para>
</step>
<step>
<para>
Execute the following commands:
</para>
<screen>zypper install sca-appliance-* sca-patterns-*
systemctl enable apache2
systemctl start apache2
sudo systemctl enable mysql
systemctl start mysql
mysql_secure_installation
setup-sca</screen>
</step>
</procedure>
</sect3>
<sect3 xml:id="sec-admsupport-sca-appliance-pre">
<title>Prerequisites</title>
<para>
To run an SCA appliance server, you need the following prerequisites:
</para>
<itemizedlist mark="bullet" spacing="normal">
<listitem>
<para>
All <systemitem>sca-appliance-*</systemitem> packages.
</para>
</listitem>
<listitem>
<para>
The <systemitem class="resource">sca-patterns-base</systemitem> package.
Additionally, any of the product-specific
<systemitem class="resource">sca-patterns-*</systemitem> for the type of
supportconfig archives that you want to analyze with the appliance.
</para>
</listitem>
<listitem>
<para>
Apache
</para>
</listitem>
<listitem>
<para>
PHP
</para>
</listitem>
<listitem>
<para>
MariaDB
</para>
</listitem>
<listitem>
<para>
anonymous FTP server (optional)
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 xml:id="sec-admsupport-sca-appliance-install">
<title>Installation and Basic Setup</title>
<para>
As listed in <xref linkend="sec-admsupport-sca-appliance-pre"/>, the SCA
appliance has several dependencies on other packages. Therefore you need
do so some preparations before installing and setting up the SCA appliance
server:
</para>
<procedure>
<step>
<para>
For Apache and MariaDB, install the <systemitem>Web</systemitem> and
<systemitem>LAMP</systemitem> installation patterns.
</para>
</step>
<step>
<para>
Set up Apache, MariaDB, and optionally an anonymous FTP server.
<phrase os="sles"> For more information, see
<xref linkend="cha-apache2"/> and <xref linkend="cha-ftp"/>. </phrase>
</para>
</step>
<step>
<para>
Configure Apache and MariaDB to start at boot time:
</para>
<screen>sudo systemctl enable apache2 mysql</screen>
</step>
<step>
<para>
Start both services:
</para>
<screen>sudo systemctl start apache2 mysql</screen>
</step>
</procedure>
<para>
Now you can install the SCA appliance and set it up as described in
<xref linkend="pro-sca-appl-install"/>.
</para>
<procedure xml:id="pro-sca-appl-install">
<title>Installing and Configuring the SCA Appliance</title>
<para>
After installing the packages, use the <command>setup-sca</command>
script for the basic configuration of the MariaDB administration and
report database that is used by the SCA appliance.
</para>
<para>
It can be used to configure the following options you have for uploading
the supportconfig archives from your machines to the SCA appliance:
</para>
<itemizedlist mark="bullet" spacing="normal">
<listitem>
<para>
<command>scp</command>
</para>
</listitem>
<listitem>
<para>
anonymous FTP server
</para>
</listitem>
</itemizedlist>
<step>
<para>
Install the appliance and the SCA base-pattern library:
</para>
<screen>sudo zypper install sca-appliance-* sca-patterns-base</screen>
</step>
<step>
<para>
Additionally, install the pattern packages for the types of
supportconfig archives you want to analyze. For example, if you have
&sls; 11 and &sls; 12 servers in your environment, install both the
<systemitem>sca-patterns-sle11</systemitem> and
<systemitem>sca-patterns-sle12</systemitem> packages.
</para>
<para>
To install all available patterns:
</para>
<screen>zypper install sca-patterns-*</screen>
</step>
<step>
<para>
For basic setup of the SCA appliance, use the
<command>setup-sca</command> script. How to call it depends on how you
want to upload the supportconfig archives to the SCA appliance server:
</para>
<itemizedlist mark="bullet" spacing="normal">
<listitem>
<para>
If you have configured an anonymous FTP server that uses the
<filename>/srv/ftp/upload</filename> directory, execute the setup
script with the <option>-f</option> option and follow the instructions
on the screen:
</para>
<screen>setup-sca -f</screen>
<note>
<title>FTP Server Using Another Directory</title>
<para>
If your FTP server uses another directory than
<filename>/srv/ftp/upload</filename>, adjust the following
configuration files first to make them point to the correct
directory: <filename>/etc/sca/sdagent.conf</filename> and
<filename>/etc/sca/sdbroker.conf</filename> .
</para>
</note>
</listitem>
<listitem>
<para>
If you want to upload supportconfig files to the
<filename>/tmp</filename> directory of the SCA appliance server via
<command>scp</command>, call the setup script without any parameters
and follow the instructions on the screen:
</para>
<screen>setup-sca</screen>
</listitem>
</itemizedlist>
<para>
The setup script runs a few checks regarding its requirements and
configures the needed components. It will prompt you for two passwords:
the MySQL &rootuser; password of the MariaDB that you have set up, and a
Web user password with which to log in to the Web interface of the SCA
appliance.
</para>
</step>
<step>
<para>
Enter the existing MariaDB &rootuser; password. It will allow the SCA
appliance to connect to the MariaDB.
</para>
</step>
<step>
<para>
Define a password for the Web user. It will be written to
<filename>/srv/www/htdocs/sca/web-config.php</filename> and will be set
as the password for the user
<systemitem class="username">scdiag</systemitem>. Both user name and
password can be changed at any time later, see
<xref linkend="sec-admsupport-sca-appliance-config-passwd"/>.
</para>
<!--taroth 2014-05-02: additional info in bnc#876021#c3:
setup-sca accepts a "-w <str> Web user password" to set the password without
being prompted if they want.-->
</step>
</procedure>
<para>
After successful installation and setup, the SCA appliance is ready for
use, see <xref linkend="sec-admsupport-sca-appliance-use"/>. However, you
should modify some options such as changing the password for the Web
interface, changing the source for the SCA pattern updates, enabling
archiving mode or configuring e-mail notifications. For details on that,
see <xref linkend="sec-admsupport-sca-appliance-config"/>.
</para>
<warning>
<title>Data Protection</title>
<para>
As the reports on the SCA appliance server contain security-relevant
information of the machines whose supportconfig archives have been
analyzed, make sure to protect the data on the SCA appliance server
against unauthorized access.
</para>
</warning>
</sect3>
<sect3 xml:id="sec-admsupport-sca-appliance-use">
<title>Using the SCA Appliance</title>
<para>
You can upload existing supportconfig archives to the SCA appliance
manually or create new supportconfig archives and upload them to the SCA
appliance in one step. Uploading can be done via FTP or SCP. For both, you
need to know the URL where the SCA appliance can be reached. For upload
via FTP, an FTP server needs to be configured for the SCA appliance, see
<xref linkend="pro-sca-appl-install"/>.
</para>
<sect4 xml:id="sec-admsupport-sca-appliance-use-upload">
<title>Uploading Supportconfig Archives to the SCA Appliance</title>
<para/>
<itemizedlist mark="bullet" spacing="normal">
<listitem>
<para>
For creating a supportconfig archive and uploading it via (anonymous)
FTP:
</para>
<screen>sudo supportconfig -U “ftp://<replaceable>SCA-APPLIANCE.COMPANY.COM</replaceable>/upload”</screen>
</listitem>
<listitem>