KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Oracle TNSping test shell script for Redhat Linux AS 3

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Library
View previous topic :: View next topic  
Author Message
tongyan



Joined: 04 Apr 2005
Posts: 6

PostPosted: Mon Apr 04, 2005 11:34 pm    Post subject: Oracle TNSping test shell script for Redhat Linux AS 3 Reply with quote

#!/bin/sh
su - oracle -c "/u01/app/oracle/product/9.2.0/bin/tnsping $1" |tail -1 \
|awk '{if ($1=="OK") {ms=(substr($(NF-2),1)); \
printf ("ScriptRes:Ok:%d ms\n",ms)} else {printf ("ScriptRes:Bad:%d ms\n",ms)};exit}'
Back to top
View user's profile Send private message
Nadir



Joined: 29 Aug 2005
Posts: 264

PostPosted: Mon Jan 14, 2008 3:18 am    Post subject: Reply with quote

Hi all,
How this script works?
Is this script required just TNS alias?
Thanks for help
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Jan 14, 2008 3:46 am    Post subject: Reply with quote

Nadir wrote:
How this script works?
Script is designed for "Shell Script" test method ( http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#chkShell )and should be performed by "RMA for *nix".
http://www.ks-soft.net/hostmon.eng/rma-unix/index.htm

Script executes tnsping utility with TNS alias, passed as parameter, checks the last line of the output (tail -1) and takes the response time.

Nadir wrote:
Is this script required just TNS alias?
Corect.

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Library All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index