Monday, May 1, 2017

Start OSWatcher Black Box (OSWBB) Every System Boot


Oracle OSWatcher Black Box (OSWbb) : collects and archives operating system and network metrics that you can use to diagnose performance issues. OSWbb operates as a set of background processes on the server and gathers data on a regular basis, invoking such Unix utilities as vmstat, netstat, iostat, and top. From release v4.0.0, you can use the OSWbba analyzer to provide information on system slowdowns, system hangs and other performance problems, and also to graph data collected from iostat, netstat, and vmstat. OSWbba requires that you have installed Java version 1.4.2 or higher on your system.

You can use yum to install Java, or you can download a Java RPM for Linux from http://www.java.com. OSWbb is particularly useful for Oracle RAC (Real Application Clusters) and Oracle Grid Infrastructure configurations. The RAC-DDT (Diagnostic Data Tool) script file includes OSWbb, but does not install it by default


1.  Install wget utility

yum install -y wget


2.  Download latest oswatcher package


wget wget http://public-yum.oracle.com/repo/OracleVM/OVM3/34_latest/x86_64/getPackage/oswatcher-7.3.3-2.el6.noarch.rpm

3.  Install OS Watcher

yum install oswatcher-7.3.3-2.el6.noarch.rpm


4.  Change OS Watcher parameters

# Set OSW_HOME to the directory where your OSWatcher tools are installed
OSW_HOME='/opt/osw'
# Set OSW_INTERVAL to the number of seconds between collections
OSW_INTERVAL='60'
# Set OSW_RETENTION to the number of hours logs are to be retained
OSW_RETENTION='48'
# Set OSW_USER to the owner of the OSWHOME directory
OSW_USER='root'
# Set OSW_COMPRESSION to the desired compression scheme
OSW_COMPRESSION='bzip2'
# Set OSW_ARCHIVE to the location to generate the logs
OSW_ARCHIVE='archive'



5. Stop and start services

# /etc/init.d/oswatcher start  
# /etc/init.d/oswatcher stop


Oracle Referece Note: How To Start OSWatcher Black Box (OSWBB) Every System Boot Using RPM oswbb-service (Doc ID 580513.1)

apt-key warning when sudo apt update run

Issue: apt-key warning when sudo apt update run Update below file: cat /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list ...