OSWatcher工具使用

1.安装
 
使用tar命令解压文件
 [root@ocp osw]# tar xvf oswbb732.tar 
oswbb/
oswbb/data/
oswbb/docs/
oswbb/docs/The_Analyzer/
oswbb/docs/The_Analyzer/OSWatcherAnalyzerOverview.pdf
oswbb/docs/The_Analyzer/oswbbaUserGuide.pdf
oswbb/docs/The_Analyzer/oswbba_README.txt
--中间省略
oswbb/src/watch.gif
oswbb/src/oswbba_input.txt
oswbb/oswrds.sh
[root@ocp osw]# ll
total 6188
drwxr-xr-x  10 oracle oinstall    4096 Sep 17  2014 oswbb
-rw-r--r--   1 root   root     6318080 Aug 28 16:58 oswbb732.tar
在oswbb目录中,可以看到执行脚本
[root@ocp osw]# cd oswbb
[root@ocp oswbb]# ll
total 404
drwxrwxr-x  2 oracle oinstall   4096 May  2  2014 analysis
-rwxrwxr-x  1 oracle oinstall     67 Jan 16  2014 call_du.sh
-rwxrwxr-x  1 oracle oinstall     68 Oct  8  2013 call_sar.sh
-rwxrwxr-x  1 oracle oinstall     71 Jan  7  2014 call_uptime.sh
drwxrwxr-x  2 oracle oinstall   4096 May  2  2014 data
drwxrwxr-x  4 oracle oinstall   4096 Sep  8  2014 docs
-rwxrwxr-x  1 oracle oinstall    626 Jan 16  2014 Example_extras.txt
-rwxrwxr-x  1 oracle oinstall   1864 Oct  8  2013 Exampleprivate.net
drwxrwxr-x  2 oracle oinstall   4096 May  2  2014 gif
...中间省略
2.程序运行和性能数据收集
--30s收集一次,运行一小时
[oracle@ocp oswbb]$ ./startOSWbb.sh 30 1 gzip
Info...Zip option IS specified. 
Info...OSW will use gzip to compress files.
[oracle@ocp oswbb]$ Setting the archive log directory to/osw/oswbb/archive
--工具确认
Testing for discovery of OS Utilities...
VMSTAT found on your system.
IOSTAT found on your system.
MPSTAT found on your system.
Warning... IFCONFIG not found on your system. No IFCONFIG data will be collected.
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 = 1

Discovery completed.
[oracle@ocp oswbb]$ Starting OSWatcher Black Box v7.3.2  on Fri Aug 28 17:11:35 CST 2015
With SnapshotInterval = 30
With ArchiveInterval = 1

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: /osw/oswbb/archive
--开始数据收集
Starting Data Collection...

oswbb heartbeat:Fri Aug 28 17:11:40 CST 2015
oswbb heartbeat:Fri Aug 28 17:12:10 CST 2015
[oracle@ocp oswbb]$ oswbb heartbeat:Fri Aug 28 17:12:40 CST 2015
oswbb heartbeat:Fri Aug 28 17:13:11 CST 2015
[oracle@ocp oswbb]$ oswbb heartbeat:Fri Aug 28 17:13:41 CST 2015
oswbb heartbeat:Fri Aug 28 17:14:11 CST 2015
oswbb heartbeat:Fri Aug 28 17:14:41 CST 2015
oswbb heartbeat:Fri Aug 28 17:15:11 CST 2015
oswbb heartbeat:Fri Aug 28 17:15:41 CST 2015
oswbb heartbeat:Fri Aug 28 17:16:11 CST 2015
oswbb heartbeat:Fri Aug 28 17:16:41 CST 2015
每隔一个时间间隔,OS Watcher就会在后台启动收集信息。
oswbb heartbeat:Fri Aug 28 17:17:12 CST 2015
oswbb heartbeat:Fri Aug 28 17:17:42 CST 2015
oswbb heartbeat:Fri Aug 28 17:18:12 CST 2015
oswbb heartbeat:Fri Aug 28 17:18:42 CST 2015
--后台运行
[root@ocp ~]# ps -ef | grep OSW
oracle   16458     1  0 17:11 pts/4    00:00:00 /bin/sh ./OSWatcher.sh 30 1 gzip
oracle   16564 16458  0 17:11 pts/4    00:00:00 /bin/sh ./OSWatcherFM.sh 1 /osw/oswbb/archive
root     18715 18492  0 17:21 pts/5    00:00:00 grep OSW

统计收集的数据,都在archive目录下分类保存。
/osw/oswbb/archive
[root@ocp archive]# ll
total 40
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswifconfig
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswiostat
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswmeminfo
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswmpstat
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswnetstat
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswprvtnet
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswps
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswslabinfo
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswtop
drwxr-xr-x  2 oracle oinstall 4096 Aug 28 17:11 oswvmstat

--后台运行
nohup ./ startOSWbb.sh 30 1 gzip &

3. 分析数据
需要在控制面板把区域和语言中的时间改为英文.

Compressed file found. Ignoring  ocp.com_vmstat_15.08.28.1700.dat.gz ...
Parsing file ocp.com_vmstat_15.08.28.1800.dat ...

Compressed file found. Ignoring  ocp.com_netstat_15.08.28.1700.dat.gz ...
Parsing file ocp.com_netstat_15.08.28.1800.dat ...

Compressed file found. Ignoring  ocp.com_top_15.08.28.1700.dat.gz ...
Parsing file ocp.com_top_15.08.28.1800.dat ...

Compressed file found. Ignoring  ocp.com_ps_15.08.28.1700.dat.gz ...
Parsing file ocp.com_ps_15.08.28.1800.dat ...

Parsing Completed.

输入1查看cpu图

oswbb是命令行式的结构,通过输入数字或者字母来进行控制。从上面提示中,我们输入1-5数字,就可以显示出对应参数的趋势变化曲线图。而6-8选项索性会直接将图像生成.gif格式文件保存下来,方便后续处理。L-Q主要是控制参数,用来修改处理位置和范围。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26937943/viewspace-1808977/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26937943/viewspace-1808977/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值