I have written the script to check the connectivity of the Database ,the scripts show me the correct error when i try to give the wrong credential's but it also show Connected and trigger's the child jobs which that should not happen , whenever the connection is not established properly it should exit from the script, which is not happening in my script..please look into the script below and let me know the changes please
------------------------------------------- Script
---------------------------------------------
----------------------------------------------------------------- output of the script
------------------------------------------------------------
Thanks in Advance
Last edited by Franklin52; 05-04-2012 at 05:47 AM..
Reason: Please use code tags
Hi Guys,
I wanted to check the sql connection through scripting if it is avilable then proceed else stop the process
I was trying
sqlplus -L username/passwd@sid
if this is not sucess it gives non-zero.
but if it is success it is going into the sqlplus prompt.
So how could i get out... (2 Replies)
In the following script I need to find whether DB is established successfully or not. I need to find and display it.
If <DB is connected successfully> then
echo "DB connection success"
else
echo "DB connection failure"
fi
In the same way I need to do it for DB terminate.
I don't... (1 Reply)
I've script where i check connection to many hosts ... it take input from HOSTLIST.txt
Ex. cat HOSTLIST.txt
host1
host2
while read HOSTNAME
do
echo $HOSTNAME
ssh -o "BatchMode=yes" ${HOSTNAME} "echo 2>&1" $$ echo flag=0 || flag=1;
if ; then
echo "No SSH... (3 Replies)
I am using SUSE OS and want to check internet connection...
I have tried:
ping -c3 google.com
The output i have got is:
Unknown host google.com
does it means that i do not have Internet connection??
Or please help me with any Command to find Internet connection?
Thanks for any help. (1 Reply)
Hi,
My network dep. telles me that they have opened the FW but my application still can not get through to other server. If it was TCP I could simply test it myself with "telnet", but how can I check it when the connection is UDP?
Tnx (1 Reply)
Hi.
I am writing client - server application using TCP sockets.
I need some very basic functionality, namely: how to check if another "participant" of the connection is still present?
I want to handle situations, when client is gone, or server breaks down, etc. (25 Replies)
Hi All,
in our system , the sftp server is continuously up. but suddenly it is brought down. how can i find out the reason behind of these , is their any log files or how can i check the connectvity with sftp.
please help me to solve this issue (1 Reply)
Hi,
I am completely new to shell scripting. Basically I am wanting to create a simple while loop script to check if a network connection is available from 'netstat -a' and if its present then output a character to the serial port. I think i am nearly there.. but need some assistance.. this is... (9 Replies)
Hi,
I need a script which check the FTP connections, if its working fine then no issue. Incase not working fine then Trigger the mail.
Please help on this.
Thanks (4 Replies)
Hello,
I need a simple shell script that returns a value if the system is internet connected and a different value if the system is not connected.
Can anyone please help?
Thanks
Daniele (3 Replies)