In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the installation and use of the tool supportconfig written by shell in the Linux system". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Installation of supportconfig
You can install through yast or through the zypper command, which is as follows:
Install directly using the source
The code is as follows
# zypper install supportutils
You can also download the rpm package and install it using yast or look for the installation in the yast administration interface
# yast install supportutils-xxx.rpm
Note: depending on the version of the system, the package name may also be supportconfig.
After the installation is completed, you can use rpm-ql supportutils to view the file information contained in the package, as follows:
The code is as follows
# rpm-ql supportutils
/ etc/schealth.conf
/ etc/supportconfig.conf
/ sbin/chkbin
/ sbin/supportconfig
/ usr/bin/schealth
/ usr/share/man/man5/supportconfig.conf.5.gz
/ usr/share/man/man8/chkbin.8.gz
/ usr/share/man/man8/supportconfig.8.gz
Note: the above results are the results of tests on suse11 sp1 Enterprise Edition, where the directory structure will be slightly different on opensuse 13, using the new version of supportconfig.
II. Supportconfig usage
The following is the help output for supportconfig
The code is as follows
# supportconfig-h
=
Support Utilities-Supportconfig
Script Version: 2.25,197
Script Date: 2010 04 02
=
Usage: supportconfig [OPTION [OPTION . ]]
-h This screen
-An 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 rpm NOTE: 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:
Https://secure-support.novell.com/eService_enu
If you cannot attach the tar ball to the SR, then email it to the engineer.
Please submit bug fixes or comments via:
Http://en.opensuse.org/Supportutils#Reporting_Bugs
=
Support Utilities-Supportconfig
Script Version: 2.25,197
Script Date: 2010 04 02
=
When executed by default supportconfig or supportconfig-A, the collected results are packaged into a nts_ hostname _ date .tbz file and a file with the .md5 suffix is generated.
Previous page 1234 the next page consists of 4 pages
III. Common examples of supportconfig
1. Supportconfig-A collects all logs
The code is as follows
# 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:
Https://secure-support.novell.com/eService_enu
You can also upload the tar ball to ftp.novell.com/incoming, 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.
=
Other common uses:
/ / collect the required information with the minimum option
# supportconfig-m
/ / include additional contact information in the output
# supportconfig-E tux@example.org-N "Tux Penguin"-O "Penguin Inc.".
/ / to view a complete list of features
# supportconfig-F
/ / only collect information about the usage of a module, such as LVM phase
# supportconfig-I LVM
The function of / /-x is just the opposite of-I, which excludes a module from collecting
# supportconfig-x LVM
/ / use-U url to upload the collected results to the server. Direct services include ftp, scp, http, and https, such as:
# supportconfig-A-U http://www.361way.com/files/
For more information, please refer to the official supportconfig options section.
System health reports collected by supportconfig:
The code is as follows
# 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
#
In the above report, we found that the kernel Tainted status is red, which is judged by cat / proc/sys/kernel/tainted. If the value is not 0, the kernel is contaminated and the values are different. For more information, please see the / usr/src/linux/Documentation/sysctl/kernel file (the specific value is different, the meaning is also different). The 64 bonus is due to the loading of modules that are not official or open source (Unsupported modules loaded).
IV. Supportconfig configuration file
The default configuration file for supportconfig is / etc/supportconfig.conf, and its default contents are as follows:
The code is as follows
# cat / etc/supportconfig.conf
# #
# Default Options
# #
OPTION_AFP=1
OPTION_APPARMOR=1
OPTION_AUDIT=1
OPTION_AUTOFS=1
OPTION_BOOT=1
OPTION_CHKCONFIG=1
OPTION_CIFS=1
OPTION_CIMOM=1
OPTION_CRASH=1
OPTION_CRON=1
OPTION_DFS=1
OPTION_DHCP=1
OPTION_DISK=1
OPTION_DNS=1
OPTION_EDIR=1
OPTION_ENV=1
OPTION_ETC=1
OPTION_EVMS=1
OPTION_HA=1
OPTION_HCREPORT=1
OPTION_IB=1
OPTION_ISCSI=1
OPTION_LDAP=1
OPTION_LUM=1
OPTION_LVM=1
OPTION_MEM=1
OPTION_MOD=1
OPTION_MPIO=1
OPTION_NCP=1
OPTION_NCS=1
OPTION_NET=1
OPTION_NFS=1
OPTION_NSS=1
OPTION_NTP=1
OPTION_OCFS2=1
OPTION_OFILES=1
OPTION_PAM=1
OPTION_PRINT=1
OPTION_PROC=1
OPTION_SAM=1
OPTION_SAR=1
OPTION_SLERT=1
OPTION_SLP=1
OPTION_SMART=0
OPTION_SMB=1
OPTION_SMS=1
OPTION_SMT=1
OPTION_SRAID=1
OPTION_SSH=1
OPTION_SYSCONFIG=1
OPTION_SYSFS=1
OPTION_UDEV=1
OPTION_UP=1
OPTION_UPD=1
OPTION_WEB=1
OPTION_X=1
OPTION_XEN=1
ADD_OPTION_EDIR=0
ADD_OPTION_FSLIST=0
ADD_OPTION_LOGS=0
ADD_OPTION_MINDISK=0
ADD_OPTION_MINYAST=0
ADD_OPTION_RPMV=0
ADD_OPTION_SLP=0
VAR_OPTION_BIN_TIMEOUT_SEC=300
VAR_OPTION_CONTACT_COMPANY= ""
VAR_OPTION_CONTACT_EMAIL= ""
VAR_OPTION_CONTACT_NAME= ""
VAR_OPTION_CONTACT_PHONE= ""
VAR_OPTION_CONTACT_STOREID= ""
VAR_OPTION_CONTACT_TERMINALID= ""
VAR_OPTION_CUSTOM_ARCH= ""
VAR_OPTION_GPG_UID= ""
VAR_OPTION_LINE_COUNT=500
VAR_OPTION_LOG_DIRS= "/ var/log / tmp"
VAR_OPTION_MSG_MAXSIZE=500000
VAR_OPTION_PENGINE_FILES_LIMIT=250
VAR_OPTION_SAR_FILES_LIMIT=30
VAR_OPTION_SBM=0
VAR_OPTION_SILENT=0
VAR_OPTION_UNIQUE_FILE=0
VAR_OPTION_UPLOAD_ALT=' https://secure-www.novell.com/upload? Appname=supportconfig&file= {tarball}'
VAR_OPTION_UPLOAD_TARGET=' ftp://ftp.novell.com/incoming'
The configuration file lists the module information collected by default, company information, mail, phone and uploaded server directory, etc.
V. supportconfig summary
Supportconfig is a very powerful tool written in shell, which can be viewed through vim / sbin/supportconfig. At the same time, because of the versatility of the linux command, we can even simply modify it and port it to other linux distributions. But obviously this is not necessary, because there is a more commonly used open source tool sosreport is similar to its function, and its applicability is stronger.
This is the end of the installation and use of supportconfig in the Linux system, and there are still many uses of supportconfig. Users can learn more about the usage according to the methods in this article.
This is the end of the content of "installation and use of supportconfig, a tool written by shell in the Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.