广告
返回顶部
首页 > 资讯 > 数据库 >OSWatcher如何安装使用
  • 734
分享到

OSWatcher如何安装使用

2024-04-02 19:04:59 734人浏览 安东尼
摘要

这篇文章主要介绍了OSWatcher如何安装使用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 [root@rhel5 ~]# l

这篇文章主要介绍了OSWatcher如何安装使用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

 [root@rhel5 ~]# ls
Desktop  anaconda-ks.cfg  install.log  install.log.syslog  oswbb601.tar  sqlnet.log
[root@rhel5 ~]# tar xvf oswbb601.tar     -- 解压文件
oswbb/
oswbb/src/
oswbb/src/tombody.gif
oswbb/src/Thumbs.db
oswbb/src/missing_graphic.gif
oswbb/src/OSW_profile.htm
oswbb/src/watch.gif
oswbb/src/coe_loGo.gif
oswbb/src/oswbba_input.txt
oswbb/tmp/
oswbb/call_du.sh
oswbb/tarupfiles.sh
oswbb/Exampleprivate.net
oswbb/vmsub.sh
oswbb/docs/
oswbb/docs/The_Analyzer/
oswbb/docs/The_Analyzer/oswbba_README.txt
oswbb/docs/The_Analyzer/OSW_Black_Box_Analyzer_Overview.pdf
oswbb/docs/The_Analyzer/oswbba_user_guide.pdf
oswbb/docs/OSWatcher_Black_Box/
oswbb/docs/OSWatcher_Black_Box/OSWatcherUserGuide.pdf
oswbb/docs/OSWatcher_Black_Box/oswbb_README.txt
oswbb/topaix.sh
oswbb/OSWatcher.sh
oswbb/pssub.sh
oswbb/nfssub.sh
oswbb/mpsub.sh
oswbb/oswrds.sh
oswbb/profile/
oswbb/oswsub.sh
oswbb/call_sar.sh
oswbb/oswnet.sh
oswbb/OSWatcherFM.sh
oswbb/analysis/
oswbb/startOSWbb.sh
oswbb/gif/
oswbb/oswib.sh
oswbb/stopOSWbb.sh
oswbb/extras.txt
oswbb/oswbba.jar
oswbb/locks/
oswbb/iOSub.sh
oswbb/xtop.sh
[root@rhel5 ~]# ls
Desktop  anaconda-ks.cfg  install.log  install.log.syslog  oswbb  oswbb601.tar  sqlnet.log
[root@rhel5 ~]# cd oswbb
[root@rhel5 oswbb]# ls
Exampleprivate.net  analysis     docs        iosub.sh  nfssub.sh   oswnet.sh  profile   startOSWbb.sh  tmp        xtop.sh
OSWatcher.sh        call_du.sh   extras.txt  locks     oswbba.jar  oswrds.sh  pssub.sh  stopOSWbb.sh   topaix.sh
OSWatcherFM.sh      call_sar.sh  gif         mpsub.sh  oswib.sh    oswsub.sh  src       tarupfiles.sh  vmsub.sh
[root@rhel5 oswbb]# vi OSWatcher.sh      -- 修改文件 nfs_collect=1
#!/bin/sh
######################################################################
# Copyright (c)  2011 by oracle Corporation
# OSWatcher.sh
# This is the main oswbb program. This program is started by running
# startOSWbb.sh
######################################################################
# Modifications Section:
######################################################################
##     Date        File            Changes
######################################################################
##  04/18/2005                      Baseline version 1.2.1
##
##  05/19/2005     OSWatcher.sh     Add -x option to iostat on linux
##  V1.3.1                          Add code to write pwd to /tmp/osw.hb
##                                  for rac_ddt to find osw arcHive
##                                  files
##
##  V1.3.2         OSWatcher.sh     Remove -f flag from $TOP for HP Conf
##                                  section. Append -f flag to $TOP when
##                                  running the HP top cmd
##
##  09/29/2006     OSWatcher.sh     Added $PLATFORM key and OSW version
##  V2.0.0                          info to header of all files. This
##                                  empty lists causing exceptions
##                                  when graphing data on platforms
##                                  other than solaris
##  07/24/2007     OSWatcher.sh     Added enhancements requested by
##  V2.1.0                          linux bde. These include using a
##                                  environment variable to control the
##                                  amount of ps data, changes to top
##                                  and iostat commands, change format
##                                  of filenames to yy.mm.dd, add
##                                  optional flag to compress files.
##                                  Added -D flag for aix iostat
##  07/24/2007     oswlnxtop.sh     Created new file for linux top
##  V2.1.0                          collection.
##  07/24/2007     oswlnxio.sh      Created new file for linux iostat
##  V2.1.0                          collection.
##  07/24/2007     startOSW.sh      Added optional 3rd parameter to
##  V2.1.0                          compress files
##  11/26/2007     oswlnxtop.sh     Fixed bug with awk script. Bug caused
##  V2.1.1                          no output on some linux platforms
##  12/16/2008     OSWg.jar         Fixed problem reading aix
##  V2.1.2                          iostat files
##  06/16/2009     OSWg.jar         Release 3.0 for EXADATA
##  V3.0.0
##  02/11/11       OSWg.jar         Bug Fix for linux iostat spanning
##  V3.0.1                          multiple lines

##  05/04/11                        Fixed directory permission on
##  V3.0.2                          install of osw.tar
##  02/01/12       OSWatcher.sh     Release 4.0 for OSWbb
##  V4.0.0
##  03/01/12       OSWbba.jar       Bug fix for throughput
##  V4.0.1                          analysis
##  03/06/12       OSWbba.jar       Bug fix for timestamp
##  V4.0.2
##  06/18/12       OSWatcher.sh     Release 5.0 for oswbb
##  V5.0.0
##  06/18/12       OSWatcher.sh     Release 5.1 for oswbb
##  V5.1.0                          added nfs collection
##  V6.0
##  02/20/12       OSWatcher.sh     fix for blank lines in extras.txt
##  V6.0.1                          causing errors
######################################################################

snapshotInterval=$1
archiveInterval=$2
zipfiles=0
status=0
vmstatus=0
mpstatus=0
iostatus=0
nfs_collect=1
nfsstatus=0
psstatus=0
netstatus=0
topstatus=0
rdsstatus=0
ibstatus=0
ZERO=0
PS_MULTIPLIER_COUNTER=0
PRSTAT_FOUND=0
ioheader=1
zip=$3
"OSWatcher.sh" 1049L, 31619C written
[root@rhel5 oswbb]# ./startOSWbb.sh 30 12 &       -- 30秒收集一次,保留12小时,并且后台运行
[1] 4822
Setting the archive log directory to/root/oswbb/archive

Testing for discovery of OS Utilities...
VMSTAT found on your system.
IOSTAT found on your system.
MPSTAT found on your system.
NETSTAT found on your system.
TOP found on your system.

Testing for discovery of OS CPU COUNT
oswbb is looking for the CPU COUNT on your system
CPU COUNT will be used by oswbba to automatically look for cpu problems

CPU COUNT found on your system.
CPU COUNT = 3

Discovery completed.

Starting OSWatcher Black Box v6.0.1  on Thu Sep 5 04:49:12 CST 2013
With SnapshotInterval = 30
With ArchiveInterval = 12

OSWatcher Black Box - Written by Carl Davis, Center of Expertise,
Oracle Corporation
For questions on install/usage please go to MOS (Note:301137.1)
If you need further assistance or have comments or enhancement
requests you can email me Carl.Davis@Oracle.com

Data is stored in directory: /root/oswbb/archive

Starting Data Collection...

oswbb heartbeat:Thu Sep 5 04:49:17 CST 2013
oswbb heartbeat:Thu Sep 5 04:49:47 CST 2013
oswbb heartbeat:Thu Sep 5 04:50:17 CST 2013
oswbb heartbeat:Thu Sep 5 04:50:48 CST 2013
oswbb heartbeat:Thu Sep 5 04:51:18 CST 2013
oswbb heartbeat:Thu Sep 5 04:51:48 CST 2013
oswbb heartbeat:Thu Sep 5 04:52:19 CST 2013
oswbb heartbeat:Thu Sep 5 04:52:49 CST 2013
oswbb heartbeat:Thu Sep 5 04:53:20 CST 2013
oswbb heartbeat:Thu Sep 5 04:53:50 CST 2013
oswbb heartbeat:Thu Sep 5 04:54:20 CST 2013

[1]+  Done                    ./startOSWbb.sh 30 12
[root@rhel5 oswbb]# ps -ef | grep OSW
root      4826     1  0 04:48 pts/1    00:00:00 /bin/sh ./OSWatcher.sh 30 12
root      4974  4826  0 04:49 pts/1    00:00:00 /bin/sh ./OSWatcherFM.sh 12 /root/oswbb/archive
root     11354  4767  0 04:54 pts/1    00:00:00 grep OSW
[root@rhel5 oswbb]# rpm -qa | grep java
 java-1.6.0-openjdk
 [root@rhel5 oswbb]# java -jar oswbba.jar -i /root/oswbb/archive      --查看OSW报告

Starting OSW Black Box Analyzer V6.0.1
OSWatcher Black Box Analyzer Written by Oracle Center of Expertise
Copyright (c)  2012 by Oracle Corporation

Parsing Data. Please Wait...

Scanning file headers for version and platform info...


Parsing file rhel5_iostat_13.09.05.0400.dat ...
Timestamp Error. Expected format: May 3 16:11:12 2006.
Timestamp Error. Found format: Sep 5 04:49:17 2013
Timestamp Error. Expected format: May 3 16:11:12 2006.
Timestamp Error. Found format: Sep 5 04:49:47 2013
Timestamp Error. Expected format: May 3 16:11:12 2006.
 
Parsing file rhel5_vmstat_13.09.05.0400.dat ...
An exception occured in insertVmstatLists on line 0
An exception occured in insertVmstatLists on line 0
An exception occured in insertVmstatLists on line 0
 

Parsing file rhel5_netstat_13.09.05.0400.dat ...


Parsing file rhel5_top_13.09.05.0400.dat ...

No data found in input archive directory /root/oswbb/archive
Please rerun oswbba with proper input directory containing OSW archive data.
Program aborting...

[root@rhel5 oswbb]# export LANG=zh_US             -- 出错后设置显示语言后正常,但需要以图形界面显示报告
[root@rhel5 oswbb]# java -jar oswbba.jar -i archive/

Starting OSW Black Box Analyzer V6.0.1
OSWatcher Black Box Analyzer Written by Oracle Center of Expertise
Copyright (c)  2012 by Oracle Corporation

Parsing Data. Please Wait...

Scanning file headers for version and platform info...


Parsing file rhel5_iostat_13.09.05.0400.dat ...
Parsing file rhel5_iostat_13.09.05.0500.dat ...


Parsing file rhel5_vmstat_13.09.05.0400.dat ...
Parsing file rhel5_vmstat_13.09.05.0500.dat ...

Parsing file rhel5_netstat_13.09.05.0400.dat ...
Parsing file rhel5_netstat_13.09.05.0500.dat ...


Parsing file rhel5_top_13.09.05.0400.dat ...
Parsing file rhel5_top_13.09.05.0500.dat ...  

Parsing Completed.    

Enter 1 to Display CPU Process Queue Graphs
Enter 2 to Display CPU Utilization Graphs
Enter 3 to Display CPU Other Graphs
Enter 4 to Display Memory Graphs
Enter 5 to Display Disk IO Graphs

Enter 6 to Generate All CPU Gif Files
Enter 7 to Generate All Memory Gif Files
Enter 8 to Generate All Disk Gif Files

Enter L to Specify Alternate Location of Gif Directory
Enter T to Specify Different Time Scale
Enter D to Return to Default Time Scale
Enter R to Remove Currently Displayed Graphs
Enter P to Generate A Profile
Enter A to Analyze Data
Enter Q to Quit Program

Please Select an Option:oswbb heartbeat:Thu Sep 5 05:20:45 CST 2013

感谢你能够认真阅读完这篇文章,希望小编分享的“OSWatcher如何安装使用”这篇文章对大家有帮助,同时也希望大家多多支持编程网,关注编程网数据库频道,更多相关知识等着你来学习!

您可能感兴趣的文档:

--结束END--

本文标题: OSWatcher如何安装使用

本文链接: https://www.lsjlt.com/news/64151.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • OSWatcher如何安装使用
    这篇文章主要介绍了OSWatcher如何安装使用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 [root@rhel5 ~]# l...
    99+
    2022-10-18
  • OSWatcher的安装、配置以及使用
    本篇内容介绍了“OSWatcher的安装、配置以及使用”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!参考O...
    99+
    2022-10-18
  • 如何安装使用GitLab
    这篇文章主要为大家展示了“如何安装使用GitLab”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“如何安装使用GitLab”这篇文章吧。GitLab 是一个用于仓库管理系统的开源项目,使用Git作...
    99+
    2023-06-27
  • MyCAT如何安装使用
    这篇文章主要介绍了MyCAT如何安装使用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 MyCAT安装 mycat运行依赖于...
    99+
    2022-10-18
  • 如何安装使用sysbench
    本篇文章为大家展示了如何安装使用sysbench,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。yum -y ins...
    99+
    2022-10-18
  • Redis如何安装使用
    这篇文章主要介绍了Redis如何安装使用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 一、Redis基础部分:  1、red...
    99+
    2022-10-18
  • SQLAdvisor如何安装使用
    小编给大家分享一下SQLAdvisor如何安装使用,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧! 一...
    99+
    2022-10-18
  • Pandas如何安装使用
    这篇文章主要介绍了Pandas如何安装使用,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。1. 安装如果做数据分析用途建议使用Anaconda,自带pandas numy 以及...
    99+
    2023-06-03
  • EasySwoole如何安装使用
    小编给大家分享一下EasySwoole如何安装使用,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!EasySwooleEasySwoole 是一款基于Swoole Server 开发的常驻内存型的分布式PHP框架,专为API...
    99+
    2023-06-14
  • Flutter如何安装使用
    这篇文章给大家分享的是有关Flutter如何安装使用的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。序言Flutter出来已经有些日子了,越来越多的开发者也开始尝试使用 Flutter 进行开发...
    99+
    2023-06-04
  • adb如何使用内置安装器安装应用
    在使用adb进行应用安装时,可以使用内置安装器来执行安装操作。以下是使用adb内置安装器安装应用的步骤:1. 首先,将应用的APK文...
    99+
    2023-10-09
    adb
  • SuSE11下如何使用rpm安装包安装MySQL5.5.60
    下文主要给大家带来SuSE11下如何使用rpm安装包安装MySQL5.5.60,希望这些内容能够带给大家实际用处,这也是我编辑SuSE11下如何使用rpm安装包安装MySQL5.5.60这篇文章的主要目的。...
    99+
    2022-10-18
  • PowerDesigner如何安装及使用
    PowerDesigner是一款强大的建模工具,用于设计和管理数据库、业务过程、数据仓库和应用程序等。下面是PowerDesigne...
    99+
    2023-09-14
    PowerDesigner
  • 如何安装与使用Bootstrap3.0
    本篇内容介绍了“如何安装与使用Bootstrap3.0”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!不过从Visual Studio 201...
    99+
    2023-06-08
  • 如何安装与使用PyCharm
    如何安装与使用PyCharm?相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。一、PyCharm 安装professional表示专业版,community是社区版,推荐安装社区版...
    99+
    2023-06-15
  • 如何使用Ubuntu安装Qt
    这篇文章将为大家详细讲解有关如何使用Ubuntu安装Qt,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。下载Qt Linux安装包首先进入Qt的官方下载页面:https://download....
    99+
    2023-06-15
  • jconsole如何安装及使用
    jconsole是Java自带的一种监视和管理工具,用于监控和管理Java虚拟机(JVM)的性能和资源使用情况。要安装和使用jcon...
    99+
    2023-09-25
    jconsole
  • opencv如何安装及使用
    要安装和使用OpenCV,您可以按照以下步骤进行操作:1. 首先,您需要下载并安装OpenCV的库文件。您可以在OpenCV的官方网...
    99+
    2023-09-20
    opencv
  • 如何安装和使用Gixy
    这篇文章主要介绍了如何安装和使用Gixy,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。Gixy 是一款用来分析 Nginx 配置的工具。 Gixy 的主要目标是防止安全配置错...
    99+
    2023-06-28
  • jdk安装后如何使用
    一旦JDK(Java Development Kit)安装完成,您可以按照以下步骤使用它:1. 设置环境变量:在Windows系统中...
    99+
    2023-08-22
    jdk
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作