您好,登錄后才能下訂單哦!
一 官方參考OSWatcher (Includes: [Video]) (文檔 ID 301137.1),最新版本為811
二 使用文檔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 ./archive Starting OSW Analyzer V8.1.1 OSWatcher Analyzer Written by Oracle Center of Expertise Copyright (c) 2017 by Oracle Corporation Parsing Data. Please Wait... Scanning file headers for version and platform info... Parsing file 12crac2_iostat_17.11.29.1400.dat ... Parsing file 12crac2_iostat_17.11.29.1500.dat ... Parsing file 12crac2_iostat_17.11.29.1600.dat ... This directory already exists. Rewriting... 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
Enter D to Generate DashBoard,里面有htm文件,可以查看圖例;
經過多年進化,這玩意越來越好用了;
需注意的是java的版本不要太高,最好用oracle 11.2.0.4自帶的JAVA,
export JAVA_HOME=$ORACLE_HOME/jdk
;
相關用法在./docs/
6 打包提交SR
./tar_up_full_archive.sh
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。