二 使用文档Document 1531223.1 OSWatcher User Guide
三 Oswatch会调用如下命令:
ps
top
ifconfig
mpstat
iostat
netstat
traceroute
vmstat
sar (HP-UX Only)
cpuinfo (Linux Only)
meminfo (Linux Only)
slabinfo (Linux Only)
说明:其他包大都是sysstat包,或系统基本包,需注意此命令在kernel-debug包里;
**四安装**
tar xvf oswbb.tar
chmod 744 *
对应的删除也很简单rm -fr oswbb
**4.1配置收集路径**
export OSWBB_ARCHIVE_DEST=/root/oswbb/archive ./startOSWbb.sh
启动时会看到:
> Starting OSWatcher v8.1.1 on Mon Nov 27 11:17:29 CST 2017 > With SnapshotInterval = 30 > With ArchiveInterval = 48
默认情况下:This would start the tool and collect data at default 30 second intervals and log the last 48 hours of data to archive files.
如果想修改成60秒,保留最近10小时的,参考如下执行:
./startOSWbb.sh 60 10 gzip
./startOSWbb.sh 60 10 gzip /u02/tools/oswbb/archive
停止
./stopOSWbb.sh
5.分析
日志生成目录如下:
oswiostat oswmpstat oswnetstat oswprvtnet oswifconfig oswps oswtop oswvmstat
分析工具oswbba(OSWatcher Analyzer User Guide (文档 ID 461053.1))
java -version java -jar oswbba.jar -i /root/oswbb/archive java -jar oswbba.jar -i archive -START coesrv40.us.oracle.com_vmstat_13.01.09.1300.dat -STOP coesrv40.us.oracle.com_vmstat_13.01.09.2000.dat -s
按p生成profile,里面有htm文件,可以查看图例;
相关用法在./docs/
6 打包提交SR
./tar_up_full_archive.sh
原文地址:http://blog.51cto.com/snowhill/2044658