Oracle OSWatcher Aracı
OSWatcher aracı, top, iostat,vmstat, netstat gibi komutlar ile üretilen verilerin analiz edilip saklanılması için geliştirilmiş bir araçtır. İçinde barındırdığı OSWg aracı ile analiz edilen verileri grafik olarak sunar. OSWatcher aracı Oracle tarafından geliştirilmiştir ve metalink üzerinden (support.oracle.com) indirilebilmektedir.
1- Metalink üzerinde (https://support.oracle.com) “OS Watcher Black Box User Guide [ID 301137.1]” isimli dokümanda bulunan oswbb402.tar isimli dosyayı indirelim. Bu dosyayı WinSCP tarzı bir program ile Linux sunucumuzun /oracle/ora11g dizinine “oracle” kullanıcısı ile kopyalayalım.
2- Tar dosyasını “oracle” kullanıcısı ile aşağıdaki gibi açalım.
# tar xvf oswbb402.tar
3- /oracle/ora11g/oswbb dizinine geçelim.
# cd /oracle/ora11g/oswbb
4- Şimdi OSWatcher aracını startOSW.sh scripti ile başlatalım. Bu scriptin iki parametresi vardır. İlk parametre ile zaman aralığını, ikinci parametre ile de kaç saat veri toplanacağını belirleriz. Hiçbir değer vermeden çalıştırırsak varsayılan değerler ile çalışır.
# ./startOSWbb.sh
Info…You did not enter a value for snapshotInterval.
Info…Using default value = 30
Info…You did not enter a value for archiveInterval.
Info…Using default value = 48
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.
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.
Starting OSWatcher Black Box v4.0.2 on Sat Apr 14 22:55:05 EEST 2012
With SnapshotInterval = 30
With ArchiveInterval = 48
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
Starting Data Collection…
oswbb heartbeat:Sat Apr 14 22:55:10 EEST 2012
oswbb heartbeat:Sat Apr 14 22:55:40 EEST 2012
oswbb heartbeat:Sat Apr 14 22:56:10 EEST 2012
oswbb heartbeat:Sat Apr 14 22:56:40 EEST 2012
oswbb heartbeat:Sat Apr 14 22:57:10 EEST 2012
oswbb heartbeat:Sat Apr 14 22:57:40 EEST 2012
oswbb heartbeat:Sat Apr 14 22:58:10 EEST 2012
oswbb heartbeat:Sat Apr 14 22:58:40 EEST 2012
5- OSWatcher aracını stopOSWbb.sh scripti ile sonlandıralım.
# ./stopOSWbb.sh
Toplanan tüm veriler archive dizinine kaydedilir.
6- Linux sunucumuza “oracle” kullanıcısı ile login olalım. Toplanan verileri grafik olarak görmek için OSWg aracını aşağıdaki gibi başlatalım.
# export PATH=$ORACLE_HOME/jdk/bin:$PATH
# java -jar oswbba.jar -i archive
Starting OSW Black Box Analyzer V4.0.2
OSWatcher Black Box Analyzer Written by Oracle Center of Expertise
Copyright (c) 2012 by Oracle Corporation
Parsing Data. Please Wait…
Parsing file DBTALIP_iostat_12.04.14.2200.dat …
Parsing file DBTALIP_iostat_12.04.14.2300.dat …
Parsing file DBTALIP_vmstat_12.04.14.2200.dat …
Parsing file DBTALIP_vmstat_12.04.14.2300.dat …
Parsing file DBTALIP_top_12.04.14.2200.dat …
Parsing file DBTALIP_top_12.04.14.2300.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 Graphs
Enter 6 to Generate All CPU Gif Files
Enter 7 to Generate All Memory Gif Files
Enter 8 to Generate All Disk Gif Files
Enter 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 A to Analyze Data
Enter Q to Quit Program
Please Select an Option:4
Önce verilerin bulunduğu dosyalar parse edilir. Sonrasında yukarıdaki gibi bir menü ile karşılaşırız. Örneğin bellek durumunu görmek için 4 tuşuna basıp [ENTER] tuşuna bastığımızda, bellek durumu ile ilgili grafik ekranı açılır.
Talip Hakan Öztürk