日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

oracle系统监控工具oswatch简介!

發布時間:2024/3/13 windows 49 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle系统监控工具oswatch简介! 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

oswatch(簡稱osw)是oracle的一個操作系統監控工具,oswatch是一個輕量級的操作系統監控工具,通過調用系統的命令完成信息的收集,并形成歷史數據,命令如下:ps ,top ,mpstat ,iostat,netstat ,traceroute vmstat 。支持的操作系統有AIX ,Tru64 ,Solaris ,HP-UX ,Linux 。 可以在metlink直接下載:OS Watcher User Guide [ID 301137.1]?? (Metalink Note:301137.1)? 下載的就是tar包,然后直接解壓就可以使用的。osw是一個java應用,可以在服務器上運行。


注意:osw工具需要以root用戶來操作哦!

1、安裝部署(解壓既可)

[root@linux app]# pwd /u01/app [root@linux app]# ll osw302.tar -rw-r--r-- 1 oracle oinstall 1366016 12-13 02:02 osw302.tar [root@linux app]# tar xvf osw302.tar osw/ osw/Exampleprivate.net osw/OSWatcher.sh osw/OSWatcherFM.sh osw/OSWgREADME.txt osw/iosub.sh osw/mpsub.sh osw/oswg.jar osw/oswib.sh osw/oswlnxio.sh osw/oswlnxtop.sh osw/oswnet.sh osw/oswrds.sh osw/oswsub.sh osw/pssub.sh osw/startOSW.sh osw/stopOSW.sh osw/tarupfiles.sh osw/topaix.sh osw/topsub.sh osw/vmsub.sh osw/tmp/ osw/src/ osw/src/coe_logo.gif osw/src/missing_graphic.gif osw/src/oswg_input.txt osw/src/OSW_profile.htm osw/src/Thumbs.db osw/src/tombody.gif osw/src/watch.gif osw/README.txt [root@linux app]# ll osw/ 總計 1336 -rwxr-xr-x 1 1003 dba??? 1730 2009-08-20 Exampleprivate.net -rwxr-xr-x 1 1003 dba???? 549 2009-08-20 iosub.sh -rwxr-xr-x 1 1003 dba???? 549 2009-08-20 mpsub.sh -rwxr-xr-x 1 1003 dba??? 4451 2009-08-20 OSWatcherFM.sh -rwxr-xr-x 1 1003 dba?? 22511 2011-05-04 OSWatcher.sh -rw-r--r-- 1 1003 dba 1226302 2011-02-11 oswg.jar -rw-r--r-- 1 1003 dba?? 14781 2011-05-04 OSWgREADME.txt -rwxr-xr-x 1 1003 dba???? 415 2009-08-20 oswib.sh -rwxr-xr-x 1 1003 dba???? 659 2009-08-20 oswlnxio.sh -rwxr-xr-x 1 1003 dba???? 829 2009-08-20 oswlnxtop.sh -rwxr-xr-x 1 1003 dba???? 357 2009-08-20 oswnet.sh -rwxr-xr-x 1 1003 dba???? 826 2009-08-20 oswrds.sh -rwxr-xr-x 1 1003 dba???? 529 2009-08-20 oswsub.sh -rwxr-xr-x 1 1003 dba???? 549 2009-08-20 pssub.sh -rw-r--r-- 1 1003 dba??? 8513 2011-05-04 README.txt drwxr-xr-x 2 1003 dba??? 4096 2009-08-31 src -rwxr-xr-x 1 1003 dba??? 1638 2011-02-11 startOSW.sh -rwxr-xr-x 1 1003 dba???? 560 2009-08-20 stopOSW.sh -rwxr-xr-x 1 1003 dba???? 127 2009-08-20 tarupfiles.sh drwxr-xr-x 2 1003 dba??? 4096 2009-08-20 tmp -rwxr-xr-x 1 1003 dba???? 431 2009-08-20 topaix.sh -rwxr-xr-x 1 1003 dba???? 550 2009-08-20 topsub.sh -rwxr-xr-x 1 1003 dba???? 549 2009-08-20 vmsub.sh

從上面看,權限有點怪,不過不管它,繼續!


2、啟動監控器

啟動監控就是調用startOSW.sh腳本。
# ./startOSW.sh arg1 arg2

arg1:數據收集的間隔,以秒為單位。
arg2: 數據收集多長時間,以小時為單位。

例如:

[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秒采樣一次,連續采用一個小時。


初次使用會在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 oswvmstat

3、停止監控器

停止osw就是在其它終端運行stopOSW.sh腳本

例如:

[root@linux osw]# cd /u01/app/osw/ [root@linux osw]# pwd /u01/app/osw [root@linux osw]# ./stopOSW.sh

4、生成圖形

[root@linux ~]# cd /u01/app/osw/ [root@linux osw]# pwd /u01/app/osw [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 ... Timestamp Error. Expected format: May 3 16:11:12 2006. Timestamp Error. Found format: 12月 13日 星期二 CST Timestamp Error. Expected format: May 3 16:11:12 2006. Timestamp Error. Found format: 12月 13日 星期二 CST Timestamp Error. Expected format: May 3 16:11:12 2006. Timestamp Error. Found format: 12月 13日 星期二 CST Timestamp Error. Expected format: May 3 16:11:12 2006. Timestamp Error. Found format: 12月 13日 星期二 CST Timestamp Error. Expected format: May 3 16:11:12 2006. Timestamp Error. Found format: 12月 13日 星期二 CSTParsing file linux_vmstat_11.12.13.0500.dat ... An exception occured in insertVmstatLists on line 6 An exception occured in insertVmstatLists on line 12 An exception occured in insertVmstatLists on line 18 An exception occured in insertVmstatLists on line 24 An exception occured in insertVmstatLists on line 30No data found in input archive directory ./archive/ Please rerun OSWg with proper input directory containing OSW archive data. Program aborting...在生成圖形界面的時候報錯了,注意Timestamp Error. 產生這個錯誤的原因就是我的操作系統是中文環境的,osw要英文日期格式才可以。 [root@linux osw]# echo $LANG zh_CN.GB18030 [root@linux osw]# date 2011年 12月 13日 星期二 05:03:13 CST下面刪除archive目錄,改為英文環境就可以了:
[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接著停止監控: [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,如果服務器有圖形界面那更好了,也可以生成報告!

總結

以上是生活随笔為你收集整理的oracle系统监控工具oswatch简介!的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。