Tips for viewing oim log file
Generally the oim log files are very huge. Most of the engineers try to download the huge files using WIN SCP and use conventional editors like notepad++ or Textpad to search for the error(s).
And some senior folks who are well versed with VI try to use VI commands.
Here is an alternative to both the approaches.
Use the below command to find out the line numbers which will contain the error string you are searching for.
grep -n "Record is inserted into table!" oim_server1.out
Now use below command to display log snippet below two specified line numbers.
sed -n 114993700,114993750p oim_server1.out
No comments:
Post a Comment