Sponsored Content
Top Forums Shell Programming and Scripting Retrying a remote connection after failure Post 302462316 by interceptor16 on Thursday 14th of October 2010 12:52:46 AM
Old 10-14-2010
Retrying a remote connection after failure

Hi all,

I am new to this forum and want an urgent help from you experts. I am currently using SunOs 5.10.

I have a .cfi file which contains some commands to be executed in a node(MSC node in telecom) To connect to a node (for eg node name is MSC1) we have a shell script that has the following command
Code:
/bin/cfi -F /home/scriptdt/scr/script/file.cfi -N MSC1 > outputfile

(cfi utility is invoked from /bin, -F option followed by the path of file.cfi which contains the commands, -N connects to the network element MSC1 and the o/p is stored in outputfile)

there are many lines like this for connecting into different nodes in the script file.

Now the trouble is sometimes due to network issues the connection to the nodes(MSC1 in this case) is not obtained and the execution moves into the next line in the script.So that particular node is missed and results in missing data. I want to retry to the node after some time when all the lines have been performed.

there is an option -b in cfi help list (tries after a delay) but the problem is if i use -b option it gets stuck onto that particular line/Node only and does not proceed to other commands until the connection is obtained and the work is done.

Please help me out how to come out of this situation urgently. I am a newbie to shell scripting.

Moderator's Comments:
Mod Comment Use code tags when posting code, data, logs etc. thanks.


---------- Post updated at 10:22 AM ---------- Previous update was at 10:03 AM ----------

any help?

Last edited by zaxxon; 10-14-2010 at 02:26 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I need remote connection help

I am very new to all of this. I tcsh into a Unix box at work. I receive "hints" from a guy here at work that is helping me without doing everything for me. I need to use rx display to x connect to a remote host. I then need to tell the machine (unsure if he meant mine or the box I connected... (2 Replies)
Discussion started by: noobie_doo
2 Replies

2. UNIX for Advanced & Expert Users

remote connection

Hi: Can i access my Linux Box from a remote machine, Login and Run a program(eg: netscape) in a particular display number. Assuming i do not have XServer running in my machine Appreciate the help Thanks, Preetham. (5 Replies)
Discussion started by: preetham
5 Replies

3. Shell Programming and Scripting

Remote Connection (SSH)

Hello all, I connect usually to one enviornment "dev" daily and then ftp some files to some other enviorment "uat" and then login to "uat" and run some scripts to process these files. I was thinking to automate the process, where running one script from "dev" will complete all task required... (11 Replies)
Discussion started by: RishiPahuja
11 Replies

4. UNIX for Advanced & Expert Users

ssh/sftp failure connection

Hello, I just want to ask regarding the meaning of the error that we got using sftp: Connecting to <TARGET SERVER IP>... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (3 Replies)
Discussion started by: james_falco
3 Replies

5. UNIX for Dummies Questions & Answers

Intermittent Printer connection failure

Hi There What causes the remote printers on unix to loose its connections to the Unix server Sco 6 Version 7 When pinging the print server from unix is comes up with host not connected, but after a few moments the ping reply is positive Then we do a disable and enable of the said printer... (0 Replies)
Discussion started by: esh
0 Replies

6. Linux

GUI remote connection

Hello, I need a tool for remote GUI connection to Linux machine ,something like remote Desktop in windows?????any help Thanks in advance (4 Replies)
Discussion started by: mm00123
4 Replies

7. UNIX for Dummies Questions & Answers

ssh_exchange_identification: Connection closed by remote host Connection closed

Hi Everyone, Good day. Scenario: 2 unix servers -- A (SunOS) and B (AIX) I have an ftp script to sftp 30 files from A to B which happen almost instantaneously i.e 30 sftp's happen at the same time. Some of these sftp's fail with the following error: ssh_exchange_identification: Connection... (1 Reply)
Discussion started by: jeevan_fimare
1 Replies

8. Shell Programming and Scripting

Success/failure status of telnet connection

Hi, I am running a shell script which will spawn the telnet and login. But sometimes, the telnet session itself is not getting spawned. My requirement is, if the telnet session is not spawned, the user must be notified that it failed. Is there any command to capture the status of telnet... (2 Replies)
Discussion started by: merin
2 Replies

9. Shell Programming and Scripting

Rsync through java program - issues with remote connection failure

Hi Everybody, I am running rsync through my java application. The Java application will sync the files with remote machine. During our connection failure testing we noticed an issue running rsync through java program. The java application which is running at source side is not receiving any... (2 Replies)
Discussion started by: MVEERA
2 Replies

10. Shell Programming and Scripting

Remote connection

How can we connect to remote computers with a bash script.? (1 Reply)
Discussion started by: diw10
1 Replies
LAMNODES(1)                                                          LAM TOOLS                                                         LAMNODES(1)

NAME
lamnodes - Resolve LAM node/CPU notation to Unix hostnames. SYNOPSIS
lamnodes [-chin] [where] OPTIONS
-c Suppress printing the CPU count for each node. -h Print the command help menu. -i Print IP addresses (instead of IP names) -n Suppress printing CPU count for each node DESCRIPTION
The lamnodes command is used to resolve LAM node/CPU nomenclature to Unix hostnames. It can be used to determine the current running con- figuration of the LAM/MPI run-time environment, and generate a boot schema that can be used to launch LAM in the future. By default, lamnodes will print out the node number, default IP name, CPU count, and per-node flags for each node in the running LAM. gethostbyaddr(3) is used to obtain default hostnames. If gethostbyaddr(3) fails, the IP number is displayed instead. This command can be used by setup shell scripts (and the like) to determine information from a currently-running LAM universe. For exam- ple, use lamnodes to resolve particular CPUs and/or nodes to specific unix hostnames. In a batch environment, lamnodes can be used to determine which CPUs share a common node (note that MPI_GET_PROCESSOR_NAME can be used for a similar effect in an MPI program). lamnodes also shows per-node flags. Currently defined flags are: origin The node where lamboot was executed. this_node The node where lamnodes is running. no_schedule The node will not be used to run MPI and serial processes when N and C are used to mpirun and lamexec. EXAMPLES
lamnodes N -n Display IP names and CPU counts for all nodes. This output can be saved and later used with lamboot(1). lamnodes C -n -c Display the IP name of the nodes containing each CPU, and suppress the LAM node number and CPU count. This output can be saved and later used with lamboot(1). SEE ALSO
bhost(5), gethostbyaddr(3), lamboot(1) LAM 7.1.4 July, 2007 LAMNODES(1)
All times are GMT -4. The time now is 09:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy