复制代码代码如下: [root@361way ~]# sosreport --help Usage: sosreport [options] Options: -h, --helpshow this help message and exit -l, --list-pluginslist plugins and available plugin options -n NOPLUGINS, --skip-plugins=NOPLUGINS disable these plugins -e ENABLEPLUGINS, --enable-plugins=ENABLEPLUGINS enable these plugins -o ONLYPLUGINS, --only-plugins=ONLYPLUGINS enable these plugins only -k PLUGOPTS, --plugin-option=PLUGOPTS plugin options in plugname.option=value format (see -l) -a, --alloptionsenable all options for loaded plugins --batch batch mode - do not prompt interactively --build keep sos tree available and dont package results -v, --verbose increase verbosity --quiet only print fatal errors --debug enable interactive debugging using the python debugger --ticket-number=TICKET_NUMBER specify ticket number --name=CUSTOMER_NAMEspecify report name --config-file=CONFIG_FILE specify alternate configuration file --tmp-dir=TMP_DIR specify alternate temporary directory --reportEnable HTML/XML reporting --profile turn on profiling -z COMPRESSION_TYPE, --compression-type=COMPRESSION_TYPE compression technology to use [auto, zip, gzip, bzip2, xz] (default=auto) Some examples: enable cluster plugin only and collect dlm lockdumps: # sosreport -o cluster -k cluster.lockdump disable memory and samba plugins, turn off rpm -Va collection: # sosreport -n memory,samba -k rpm.rpmva=off
复制代码代码如下: [root@361way log]# sosreport -a --report sosreport (version 3.0) This command will collect diagnostic and configuration information from this CentOS Linux system and installed applications. An archive containing the collected information will be generated in /var/tmp and may be provided to a CentOS support representative. Any information provided to CentOS will be treated in accordance with the published support policies at: https://www.centos.org/ The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. Press ENTER to continue, or CTRL-C to quit. Please enter your first initial and last name [361way.com]: Please enter the case number that you are generating this report for: Running plugins. Please wait ... Running 68/68: yum... Creating compressed archive... Your sosreport has been generated and saved in: /var/tmp/sosreport-361way.com-20140912204339.tar.xz The checksum is: eaf5b2cbb1e9be68d41be5e5a60a61b6 Please send this file to your support representative.
复制代码代码如下: # supportconfig -h ============================================================================= Support Utilities - Supportconfig Script Version: 2.25-197 Script Date: 2010 04 02 ============================================================================= Usage: supportconfig [OPTION [OPTION ...]] -h This screen -A Activates all supportconfig functions with additional logging and full rpm verification. -B <string> Custom tar ball file name element -C Creates a new default /etc/supportconfig.conf -D Use defaults; ignore/etc/supportconfig.conf -E <string> Contact email address -F Display available supportconfig feature keywords (case-sensitive) used with -i and -x -G <gpg_uid> The GPG recipient"s user ID used to encrypt the supportconfig tarball -H <number> Limit number of included HA Policy engine files -I <number> Default log file line count -L Create a full file listing from "/" -M <string> Contact terminal ID -N <string> Contact name -O <string> Contact company name -P <string> Contact phone number -Q Run in silent mode -R <path> Log output directory -S <number> Limit number of included SAR files -T <seconds> Binary execution timeout -U <URI string> Sets upload target URL and initiates an upload, supported services include: ftp, scp, http, https -M <string> Contact store ID -X <number> Max system logs line count -a Upload the tar ball to the specified alternate target VAR_OPTION_UPLOAD_ALT -b Screen buffer mode -d Exclude detailed disk info and scans -e Search root file system for eDirectory instances; -L implied. Be patient. -f From directory. Don"t collect report files, just use files in that directory. -g Use gzip instead of the default bzip2 compression. -i <keyword list> Include keywords. A comma separated list of feature keywords that specify which features to include. Use -F to see a list of valid keywords. -l Gathers additional rotated logs -m Only gather a minimum amount of info: basic env, basic health, hardware, rpm, messages, y2logs -o Toggle listed features on or off -p Disable all plugins -q Add a uuid to the tar ball filename to ensure uniqueness -r <srnum> Includes the Novell 11 digit service request number when uploading the tar ball to Novell -s Include full SLP service lists -t Target directory. Just save log files here, do not create tarball. -u Upload the tar ball to the specified VAR_OPTION_UPLOAD_TARGET. -v Performs an rpm -V for each installed rpmNOTE: This takes a long time to complete -x <keyword list> Exclude keywords. A comma separated list of feature keywords that specify which features to exclude. Use -F to see a list of valid keywords. -y Only gather the minimum y2log files. Use Ctrl- to try and skip a function that is hanging. ----------------------------------------------------------------------------- NOTE: This tool will create a tar ball in the /var/log directory. Please attach the log file tar ball to your open Service.Request at the following URL: <a href="https://secure-support.novell.com/eService_enu">https://secure-support.novell.com/eService_enu</a> If you cannot attach the tar ball to the SR, then email it to the engineer. Please submit bug fixes or comments via: <a href="http://en.opensuse.org/Supportutils#Reporting_Bugs">http://en.opensuse.org/Supportutils#Reporting_Bugs</a> ============================================================================= Support Utilities - Supportconfig Script Version: 2.25-197 Script Date: 2010 04 02 =============================================================================
默认supportconfig或supportconfig -A执行后会将收集后的结果打包为一个nts_主机名_日期.tbz 文件,同时会生成一个以该文件名加.md5后缀的文件。 三、supportconfig常用示例 1、supportconfig -A 收集所有日志
复制代码代码如下: # supportconfig ============================================================================= Support Utilities - Supportconfig Script Version: 2.25-290 Script Date: 2011 07 14 ============================================================================= Gathering system information Data Directory:/var/log/nts_361way.com_140825_1504 Basic Server Health Check... Done RPM Database...Done Basic Environment... Done Basic Health Report... Done System Modules...Done Memory Details...Done Disk I/O...Done YaST Files...Done Auditing...Done Crash Info...Done NTP... Done PROC...Done Boot Files...Done SLERT... Skipped Updates... Done SMT... Skipped Novell eDirectory... Please Wait... Skipped Novell LUM...Skipped Novell NCP...Skipped Novell NSS...Skipped Novell DFS...Skipped Novell SMS...Skipped Novell NCS...Skipped Novell AFP...Skipped Novell CIFS... Skipped Novell iManager... Skipped HA Cluster...Skipped OCFS2... Skipped DRBD...Skipped PAM... Done LDAP...Done CIMOM... Done Open Files...Done Environment... Done ETC... Done SYSCONFIG... Done SYSFS... Done System Daemons...Done CRON...Done AT...Done UDEV...Done LVM... Please Wait... Base Detail Done EVMS...Skipped Software Raid... Done Multipathing...Done Networking...Done Web... Done InfiniBand...Done DNS... Done DHCP...Done SLP... Done SSH... Done iSCSI... Done Samba... Done NFS... Done AUTOFS...Done SAR Files... Done AppArmor...Done Xen... Done KVM... Done X... Done Printing...Done SMART Disks... Excluded Hardware...Please Wait... Done File System List...Skipped Supportability Analysis... Please Wait... Done System Logs... Done Creating Tar Ball ==[ DONE ]=================================================================== Log file tar ball: /var/log/nts_361way.com_140825_1504.tbz Log file size: 4.0M Log file md5sum: 484b111cda54ca04419facd82a1da7d7 Please attach the log file tar ball to your open Service Request at the following URL: <a href="https://secure-support.novell.com/eService_enu">https://secure-support.novell.com/eService_enu</a> You can also upload the tar ball to <a href="ftp://ftp.novell.com/incoming">ftp.novell.com/incoming</a>, or just use supportconfig -ur <srnum>, to upload the tar ball automatically. If you cannot attach the tar ball to the SR, then email it to the engineer. =============================================================================
复制代码代码如下: # supportconfig -A # cd /var/log # tar jxvf nts_361way.com_140825_1504.tbz # more basic-health-report.txt #==[ Command ]======================================# # /usr/bin/schealth -q ###################################################################### Supportconfig Health Check Report Tool v1.00-5 Date Checked: 09/12/14 04:40:37 ###################################################################### Health Check Files [Green] Processes Waiting for Run Queue[Green] Kernel Taint Status[ Red ] Kernel Tainted: 64 > 0 CPU Utilization[Green] Interrupts Per Second[Green] Context Switches Per Second[Green] Free Memory and Disk Swapping[Green] Used Disk Space[Green] Uninterruptible Processes[Green] Zombie Processes [Green] ###################################################################### Status: Red Flag Checked:/var/log/nts_361way.com_140825_1504/basic-health-check.txt Report: /var/log/nts_361way.com_140825_1504/basic-health-report.txt ######################################################################