Amazon books

Thursday, June 6, 2013

Find and Compress OSW files quickly

I want to find and compress OSW files from time that my instance crashed:

INSTANCE_NAME     STATUS       TO_CHAR(STARTUP_TIM
---------------- ------------ -------------------
INST3     OPEN          06-06-2013 01:42:43
INST2     OPEN          03-05-2013 15:16:42
INST1     OPEN          03-05-2013 15:16:20
INST4     OPEN          06-06-2013 01:47:37


So you need to generate OSW analyze report using files from 00am to 2am.

Find and zip files:
find . -name "*13.06.06.0[0-2]00*" -exec zip /tmp/osw_`hostname`_06_Jun.zip {} \;

Use oswbb.jar to generate analyze report. Start osw Tool with command similar below:

export JAVA_HOME=/usr/java/jre1.7.0_21
/usr/java/jre1.7.0_21/bin/java -jar oswbba.jar -i /tmp/tmp/archive_new


Best Regards,
Paulo Portugal

No comments:

Post a Comment