位置: 编程技术 - 正文

Linux系统如何安装和使用shell编写的工具supportconfig(linux系统如何安装字体)

编辑:rootadmin

推荐整理分享Linux系统如何安装和使用shell编写的工具supportconfig(linux系统如何安装字体),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:linux系统如何安装字体,linux系统如何安装网卡驱动,linux系统如何安装deb文件,linux系统如何安装exe文件,linux系统如何安装打印机,linux系统如何安装网卡驱动,linux系统如何安装exe文件,linux系统如何安装软件包,内容如对您有帮助,希望把文章链接给更多的朋友!

  supportconfig作为Linux系统shell编写的工具,其功能是非常强大的,但还是有很多人对supportconfig工具不了解,不知如何使用supportconfig工具,下面小编就简单的给大家介绍下Linux安装使用supportconfig的方法。

  一、supportconfig的安装

  可以通过yast进行安装,也可以通过zypper命令进行安装,安装命令如下:

  直接使用源进行安装

  代码如下

  #zypper install supportutils

  也可以将rpm包下载下来使用yast进行安装或者在yast的管理界面里查找安装

  #yast install supportutils-xxx.rpm

  注:根据系统的版本不同,包名也可能是supportconfig 。

  安装完成后可以使用rpm -ql supportutils 查看包中具体包含的文件信息,如下:

  代码如下

  # 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

  注:上面的结果是在 suse sp1企业版上的测试的结果,在opensuse 上目录结构会略有不同,其上使用的是新版本的supportconfig。

  二、supportconfig用法

  以下是supportconfig的帮助输出

  代码如下

  # supportconfig -h

  =============================================================================

  Support Utilities - Supportconfig

  Script Version: 2.-

  Script Date:

  =============================================================================

  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 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:

    If you cannot attach the tar ball to the SR, then email it to the engineer.

  Please submit bug fixes or comments via:

    =============================================================================

  Support Utilities - Supportconfig

  Script Version: 2.-

  Script Date:

  =============================================================================

  默认supportconfig或supportconfig -A执行后会将收集后的结果打包为一个nts_主机名_日期.tbz 文件,同时会生成一个以该文件名加.md5后缀的文件。

上一页下一页共4页

  三、supportconfig常用示例

  1、supportconfig -A 收集所有日志

  代码如下

  # supportconfig

  =============================================================================

  Support Utilities - Supportconfig

  Script Version: 2.-

  Script Date:

  =============================================================================

  Gathering system information

  Data Directory: /var/log/nts_way.com__

  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

Linux系统如何安装和使用shell编写的工具supportconfig(linux系统如何安装字体)

  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_way.com__.tbz

  Log file size: 4.0M

  Log file md5sum: bcdacafacda1da7d7

  Please attach the log file tar ball to your open Service Request at the

  following URL:

    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.

  =============================================================================

  其他常用用法:

  //以最小选项搜集所需的信息

  # supportconfig -m

  //在输出中包含附加的联系人信息

  # supportconfig -E tux@example.org -N “Tux Penguin” -O “Penguin Inc.” 。。。

  //要查看完整的功能列表

  # supportconfig -F

  //仅收集某个模块的用法,如LVM相的信息

  # supportconfig -i LVM

  //-x 的功能与-i刚好相反,是排除某个模块不收集

  # supportconfig -x LVM

  //使用-U url 可以将收集的结果上传到服务器上,直接的服务有ftp, scp, http, https,如:

  # supportconfig -A -U   具体可以参看官方的 常用的supportconfig选项 部分 。

  supportconfig收集的系统健康报告:

  代码如下

  # supportconfig -A

  # cd /var/log

  # tar jxvf nts_way.com__.tbz

  # more basic-health-report.txt

  #==[ Command ]======================================#

  # /usr/bin/schealth -q

  ######################################################################

  Supportconfig Health Check Report Tool v1.-5

  Date Checked: // ::

  ######################################################################

  Health Check Files [ Green ]

  Processes Waiting for Run Queue [ Green ]

  Kernel Taint Status [ Red ]

  Kernel Tainted: 》 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_way.com__/basic-health-check.txt

  Report: /var/log/nts_way.com__/basic-health-report.txt

  ######################################################################

  上面的报告中,我们发现kernel Tainted 状态为red ,该处是通过cat /proc/sys/kernel/tainted 进行判断的,如果值不为0,则是内核受到污染 ,显的值不同,具体可以参看/usr/src/linux/Documentation/sysctl/kernel 文件(具体的值不一样,代表的意义也不一样)。报红是由于加载了非系统官方或非开源的模块所致( Unsupported modules loaded)。

  四、supportconfig配置文件

  supportconfig的默认配置文件是 /etc/supportconfig.conf ,其默认内容如下:

  代码如下

  # 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=

  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=

  VAR_OPTION_LOG_DIRS=“/var/log /tmp”

  VAR_OPTION_MSG_MAXSIZE=

  VAR_OPTION_PENGINE_FILES_LIMIT=

  VAR_OPTION_SAR_FILES_LIMIT=

  VAR_OPTION_SBM=0

  VAR_OPTION_SILENT=0

  VAR_OPTION_UNIQUE_FILE=0

  VAR_OPTION_UPLOAD_ALT=‘  VAR_OPTION_UPLOAD_TARGET=‘  配置文件中列出了默认收集的模块信息,公司信息、邮件、电话及上传的服务器目录等。

  五、supportconfig总结

  supportconfig是使用shell 编写的一个功能十分强大的工具,具体可以通过vim /sbin/supportconfig 查看 。同时,由于linux命令上的通用性,我们甚至可以很简单的进行修改后将其移植到其他linux 发行版上。不过显然这是没必要的,因为还有一个比较通的用的开源工具sosreport和其作用差不多,而其适用性更强。

  supportconfig在Linux系统的安装使用就介绍到这里了,supportconfig的用法还有很多,用户可根据本文的方法举一反三,掌握更多用法。

Linux通过shell脚本创建SVN版本库简化创建过程 Linux每次建立SVN版本库的过程都非常麻烦,如果将这些通过shell脚本来实现的话会简单很多,那么这个shell脚本要如何编译呢?下面小编就给大家介绍下Li

Linux安装GBK/GB程序显示乱码的五种解决方法 不少用户在Linux系统中安装GBK或GB的时候遇到了乱码问题,这主要是系统默认语言是uft8所导致,对于该问题可用五种方法进行解决,下面小编就给大

在Linux系统中使用GDB来调试C/C++程序的方法 没有调试器的情况下编写程序时最糟糕的状况是什么?编译时跪着祈祷不要出错?用血祭召唤恶魔帮你运行程序?或者在每一行代码间添加printf(test)语

标签: linux系统如何安装字体

本文链接地址:https://www.jiuchutong.com/biancheng/367495.html 转载请保留说明!

上一篇:Linux如何利用ssh传送文件至FTP空间进行备份(linux ssh gui)

下一篇:Linux通过shell脚本创建SVN版本库简化创建过程

  • 医药行业发票税率
  • 自产农产品增值税申报表填10行吗
  • 库存现金怎么登记账簿
  • 对方把发票丢了可以重开吗
  • 收到销售退回时应当冲减
  • 销项抵扣需要缴纳城建税吗
  • 长期股权投资属于金融资产吗
  • 个体工商户怎么注销
  • 赠品折扣计算法
  • 固定资产清理属于
  • 员工离职 社保
  • 个人所得税必须得交吗
  • 居民委员会有没有纳税人识别号吗
  • 公司购买的商品给别的企业用了,企业所得税能列支吗
  • 不增税、免税、零税率的差异
  • 异地预缴本地申报流程
  • 银行呆帐坏账
  • 开票多一分钱怎么办
  • 应交税费应交增值税明细科目设置
  • 税负率一般控制在多少合适
  • 车辆购置税计入固定资产一起折旧吗
  • 提供有形动产租赁服务的增值税税率是
  • 商铺水费收取标准2020
  • 公司纳税高说明什么
  • 更改win10通知
  • 开发商未出售的房子有产权证吗
  • 分红个人所得税在哪里查询
  • 苹果系统中怎么删除软件
  • window10玩吃鸡总崩溃
  • 租赁公司经营项目
  • messenger 是什么意思
  • phpstudy怎么配置php环境
  • web安全如何入门
  • 只用vue可以做网站不?
  • Vite4+Pinia2+vue-router4+ElmentPlus搭建Vue3项目(组件、图标等按需引入)[保姆级]
  • 申报高新企业的好处
  • 计提工会经费的工资总额包括哪些
  • 外国常驻代表机构经费支出范围
  • 工程咨询服务发展指导意见坚持市场培优的原则
  • 公司对员工的罚款用途
  • 专票已认证但又不能抵扣
  • 发票税控系统
  • 营改增后房地产企业增值税如何核算
  • 应交税费包括哪些科目
  • 进项已抵扣,退货发票怎么处理
  • 往来账怎么记账
  • 向客户收取的承兑贴息款如何开发票
  • 加计抵减附加税怎么算
  • 多收钱退回去咋说
  • 固定资产的折旧年限规定
  • 服务企业的举措
  • friend怎么用
  • XP系统安装不了QQ
  • 解决口苦最快的方法
  • ubuntu18 ssh
  • mac怎么修改默认应用
  • linux防御
  • fedora win10
  • 两台xp电脑怎么共享文件
  • windows开机自启动程序
  • windows怎么安装
  • macos 音量快捷键
  • mobile window
  • linux如何使用数据库
  • win7屏幕刷新率怎么调高
  • 彻底弄懂js中的this指向
  • 关于extjs4如何获取grid修改后的数据的问题
  • 基于怎么用
  • 特牛的群名
  • android开发技术介绍
  • Python 专题四 文件基础知识
  • unity3dwasd移动
  • python基础视频教程
  • python web ui
  • 打破游戏规则
  • js 输入
  • viewpager自动滑动
  • 广州市地税局副局长
  • 广西税务申报增值税时为什么打开表格时总是加载中
  • 个人怎么在网上交医保和养老保险
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设