oracle系统监控工具oswatch简介!
oswatch(簡稱osw)是oracle的一個操作系統(tǒng)監(jiān)控工具,oswatch是一個輕量級的操作系統(tǒng)監(jiān)控工具,通過調(diào)用系統(tǒng)的命令完成信息的收集,并形成歷史數(shù)據(jù),命令如下:ps ,top ,mpstat ,iostat,netstat ,traceroute vmstat 。支持的操作系統(tǒng)有AIX ,Tru64 ,Solaris ,HP-UX ,Linux 。 可以在metlink直接下載:OS Watcher User Guide [ID 301137.1]?? (Metalink Note:301137.1)? 下載的就是tar包,然后直接解壓就可以使用的。osw是一個java應(yīng)用,可以在服務(wù)器上運(yùn)行。
注意:osw工具需要以root用戶來操作哦!
1、安裝部署(解壓既可)
從上面看,權(quán)限有點(diǎn)怪,不過不管它,繼續(xù)!
2、啟動監(jiān)控器
啟動監(jiān)控就是調(diào)用startOSW.sh腳本。
# ./startOSW.sh arg1 arg2
arg1:數(shù)據(jù)收集的間隔,以秒為單位。
arg2: 數(shù)據(jù)收集多長時間,以小時為單位。
例如:
[root@linux osw]# cd /u01/app/osw/ [root@linux osw]# pwd /u01/app/osw [root@linux osw]# ./startOSW.sh 30 1 [root@linux osw]# 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.Discovery completed.Starting OSWatcher v3.0.2 on 2011年 12月 13日 星期二 02:27:42 CST With SnapshotInterval = 30 With ArchiveInterval = 1OSWatcher - Written by Carl Davis, Center of Expertise, Oracle CorporationStarting Data Collection...osw heartbeat:2011年 12月 13日 星期二 02:27:42 CST osw heartbeat:2011年 12月 13日 星期二 02:28:13 CST osw heartbeat:2011年 12月 13日 星期二 02:28:44 CST ... ... 以上這里就是沒30秒采樣一次,連續(xù)采用一個小時。
初次使用會在OSW_HOME目錄下面生成一個archive目錄,此目錄就是存放采樣信息的:
[root@linux osw]# cd /u01/app/osw/ [root@linux osw]# pwd /u01/app/osw [root@linux osw]# ll archive/ 總計 36 drwxr-xr-x 2 root root 4096 12-13 02:16 oswiostat drwxr-xr-x 2 root root 4096 12-13 02:16 oswmeminfo drwxr-xr-x 2 root root 4096 12-13 02:16 oswmpstat drwxr-xr-x 2 root root 4096 12-13 02:16 oswnetstat drwxr-xr-x 2 root root 4096 12-13 02:16 oswprvtnet drwxr-xr-x 2 root root 4096 12-13 02:16 oswps drwxr-xr-x 2 root root 4096 12-13 02:16 oswslabinfo drwxr-xr-x 2 root root 4096 12-13 02:16 oswtop drwxr-xr-x 2 root root 4096 12-13 02:16 oswvmstat [root@linux osw]# cd archive/ [root@linux archive]# ll 總計 36 drwxr-xr-x 2 root root 4096 12-13 02:16 oswiostat drwxr-xr-x 2 root root 4096 12-13 02:16 oswmeminfo drwxr-xr-x 2 root root 4096 12-13 02:16 oswmpstat drwxr-xr-x 2 root root 4096 12-13 02:16 oswnetstat drwxr-xr-x 2 root root 4096 12-13 02:16 oswprvtnet drwxr-xr-x 2 root root 4096 12-13 02:16 oswps drwxr-xr-x 2 root root 4096 12-13 02:16 oswslabinfo drwxr-xr-x 2 root root 4096 12-13 02:16 oswtop drwxr-xr-x 2 root root 4096 12-13 02:16 oswvmstat3、停止監(jiān)控器
停止osw就是在其它終端運(yùn)行stopOSW.sh腳本
例如:
[root@linux osw]# cd /u01/app/osw/ [root@linux osw]# pwd /u01/app/osw [root@linux osw]# ./stopOSW.sh4、生成圖形
[root@linux osw]# LANG=C [root@linux osw]# date Tue Dec 13 05:03:47 CST 2011 [root@linux osw]# rm -rf archive/ [root@linux osw]# ./startOSW.sh 10 1 [root@linux osw]# 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.Discovery completed.Starting OSWatcher v3.0.2 on Tue Dec 13 05:04:06 CST 2011 With SnapshotInterval = 10 With ArchiveInterval = 1OSWatcher - Written by Carl Davis, Center of Expertise, Oracle CorporationStarting Data Collection...osw heartbeat:Tue Dec 13 05:04:06 CST 2011 osw heartbeat:Tue Dec 13 05:04:16 CST 2011 osw heartbeat:Tue Dec 13 05:04:26 CST 2011 osw heartbeat:Tue Dec 13 05:04:37 CST 2011 osw heartbeat:Tue Dec 13 05:04:48 CST 2011接著停止監(jiān)控: [root@linux osw]# ./stopOSW.sh生成圖形界面:
[root@linux osw]# java -jar oswg.jar -i ./archive/Starting OSWg V3.0.1 OSWatcher Graph Written by Oracle Center of Expertise Copyright (c) 2008 by Oracle CorporationParsing Data. Please Wait...Parsing file linux_iostat_11.12.13.0500.dat ...Parsing file linux_vmstat_11.12.13.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 GraphsEnter 6 to Generate All CPU Gif Files Enter 7 to Generate All Memory Gif Files Enter 8 to Generate All Disk Gif FilesEnter 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 Q to Quit ProgramPlease Select an Option:圖形界面可以借助xmanger,如果服務(wù)器有圖形界面那更好了,也可以生成報告!
總結(jié)
以上是生活随笔為你收集整理的oracle系统监控工具oswatch简介!的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 高德地图路线规划_高德地图 w
- 下一篇: Aseprite学习/技巧