Skip to content
Home » Oracle » Where is OSWatcher Logs Location

Where is OSWatcher Logs Location

OSWatcher Logs Location

The default location of OSWatcher logs may not be so obvious as you thought. In this post, we try to use some ways to find the correct location of OSWatcher Black Box (OSWbb).

Default Location

OSWatcher logs are usually at the following location in a grid infrastructure.

$ORACLE_BASE/oracle.ahf/data/repository/suptools/`hostname -s`/oswbb/grid/archive

Let's see how we find them.

[grid@primary01 grid]$ export ORACLE_BASE=/u01/app/grid
[grid@primary01 grid]$ cd $ORACLE_BASE/oracle.ahf/data/repository/suptools/`hostname -s`/oswbb/grid/archive
[grid@primary01 archive]$ pwd
/u01/app/grid/oracle.ahf/data/repository/suptools/primary01/oswbb/grid/archive
[grid@primary01 archive]$ ls -l
total 72
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswarp
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswifconfig
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswiostat
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswmpstat
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswnetstat
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswprvtnet
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswps
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswtop
drwxr-xr-x    2 grid     oinstall       4096 Dec 10 16:00 oswvmstat

find Command

We find "oswbb" directory in the $ORACLE_BASE by root.

[root@primary01 /]# find $ORACLE_BASE -name "oswbb" -type d
/u01/app/grid/oracle.ahf/data/repository/suptools/primary01/oswbb
/u01/app/grid/oracle.ahf/data/repository/suptools/primary01/oswbb/grid/oswbb
/u01/app/grid/tfa/repository/suptools/primary01/oswbb
/u01/app/grid/tfa/repository/suptools/primary01/oswbb/grid/oswbb

It gives us some hints about the location of OSWatcher, we should append /grid/archive to the first line to get the exact path.

Please note that, the last 2 lines are the location of an older release of OSWatcher.

grep Command

Similarly, if OSWatcher is running on this node, you can grep the keyword "oswbb" from its processes like this.

[grid@primary01 grid]$ ps -ef | grep -i oswbb | grep -v grep
    grid 37486918        1   0   Dec 02      -  1:05 /bin/sh ./OSWatcher.sh 30 48 /bin/gzip /u01/app/grid/oracle.ahf/data/repository/suptools/primary01/oswbb/grid/archive
    grid 39780784 37486918   0   Dec 02      -  0:29 /bin/sh ./OSWatcherFM.sh 48 /u01/app/grid/oracle.ahf/data/repository/suptools/primary01/oswbb/grid/archive

The log location of OSWatcher is there.

Leave a Reply

Your email address will not be published. Required fields are marked *