print only tnsping errors (example no listener) not successful resolving

  • From: Sven Aluoor <aluoor@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Thu, 10 Feb 2011 14:53:49 +0100

Hi folks

I made the command:

for i in `grep 'SID' /opt/webimr/params | awk '{ print $3 } '`; do
tnsping $i ; done

it gives me huge output (because over 600 instances), but I am only
interested in errors (not successful resolved). Howto filter all
errors out?

cheers Sven
--
//www.freelists.org/webpage/oracle-l


Other related posts: