Exadata · Oracle

OS Watcher Install & Usage

OS Watcher is a great tool. Pretty easy to install and use.
It uses the common linux commands like top, vmstat, iostat….
First of all Lets give credit to oracle support 🙂

Usage :
OS Watcher Black Box User’s Guide (Doc ID 1531223.1)
Download :
OSWatcher Black Box (Includes: [Video]) (Doc ID 301137.1)
Service Setup : 
How To Start OSWatcher Black Box (OSWBB) Every System Boot (Doc ID 580513.1)

Installation
just untar the downloaded os watcher black box executables into a directory.

[oracle@host oswatcher]$ tar -xvf oswbb711.tar
.
.

Start Using no service

[oracle@host oswatcher]$ ls
     oswbb  oswbb711.tar
[oracle@host oswatcher]$ mkdir /oradata/oswatcher_archive
[oracle@host oswatcher]$ cd oswbb
[oracle@host oswbb]$ nohup ./startOSWbb.sh 3 48 gzip /oradata/oswatcher_archive  &

Start Using oswbb service

Download the rpms for the oswatcher service and install

[root@host oswatcher]# rpm -Uvh oswbb-service-1.1.5-1.noarch.rpm 
Preparing...                ########################################### [100%]
   1:oswbb-service          ########################################### [100%]

Edit the conf file for the service

/etc/oswbb.conf contains the parameters for the collection schedule for the scripts.

[root@host oswbb]# cat /etc/oswbb.conf 
# Set OSW_HOME to the directory where you unpacked OSW or OSWbba
OSW_HOME='/oradata /oswatcher/oswbb'
# Set OSW_INTERVAL to the number of seconds between collections
OSW_INTERVAL='3'
# Set OSW_RETENTION to the number of hours logs are to be retained
OSW_RETENTION='48'
# Set OSW_USER to the owner of the OSW_HOME directory
OSW_USER='oracle'
# Set OSW_COMPRESSION to the desired compression facility
OSW_COMPRESSION='gzip'

Start the service

[root@host oswbb]# /sbin/service oswbb start
Starting OSWatcher: [  OK  ]

Set to start after every reboot

[root@host  ]# /sbin/chkconfig oswbb on
[root@host  ]# /sbin/chkconfig --list oswbb
    oswbb           0:off   1:off   2:on    3:on    4:on    5:on    6:off

Check if it is running

[oracle@host ]$ ps -ef | grep -i  osw
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s