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

From: Sven Aluoor <aluoor_at_gmail.com>
Date: Thu, 10 Feb 2011 14:53:49 +0100
Message-ID: <AANLkTikd2BSFZAMFzMQ=Z1YG6UyyR5vLA_ZzQy+do0OK_at_mail.gmail.com>



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

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 10 2011 - 07:53:49 CST

Original text of this message