Thursday, June 19, 2014

Search alert log for error, time and occurances


----------+
grep Linux|
----------+



grep -A 1 -B 1 -C 1 '' 

where  -A 1 --one line after expression match
 -B 1 --one line befor expression match
 -C 1 --one line before & after expression match



----------+
grep SunOS|
----------+


nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r[(NR-c+1)%b];print;c=a}b{r[NR%b]=$0}' b=2 a=4 s="string" file1



where "b" and "a" are the number of lines to print before and after string "s" in file1.

NLS boot file not found or invalid opmnctl ping – EBS 12.2 ADCFGCLONE FAIL

Error: adcfgclone.pl failed while performing clone of EBS 12.2 instance. This occurred while ohsT2PApply is in progress. INST_TOP/adm...