Unix Technical Forum

oninit via remote shell

This is a discussion on oninit via remote shell within the Informix forums, part of the Database Server Software category; --> Hi all, we have 2 servers connected via hdr and i need a script to change the status(primary/secondary) of ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 10:06 AM
ruediger.papke@t-online.de
 
Posts: n/a
Default oninit via remote shell

Hi all,
we have 2 servers connected via hdr and i need a script to change the
status(primary/secondary) of these servers.
The script consists of local and remote commands(hdrmkpri.sh,
hdrmksec.sh , some copy-commands and some tests in the right order)
The Problem:if i start a remote shell which contains an oninit-command,
all commands in the remote script are executed, but the ssh/rsh command
comes not back to the prompt.
Example:
server2:/usr/ifx/bin/ifx_start:
#####################
.. env_ids_10.0 # load informix environment
oninit
echo "after oninit"
#####################
locally started on server2 it works and returns the prompt

start on server1:
ssh server2 "/usr/ifx/bin/ifx_start"

-> all commands of the script are executed
....
after oninit
.....
the ssh-command has no end, no prompt comes back!!!

the original script is more complex, i reduced this to one
oninit-command (i think, the problem comes from oninit)

Our environment is Solaris and ids 10.0, but I had tests with same
results on SUSE-linux 9.1 and IDS 9.40.
And i tried rsh ... and ssh ... -> same problems.

remote script with onmode works.

Do you have any ideas, do you have an explanation??

TIA

Ruediger Papke

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 10:06 AM
ruediger.papke@t-online.de
 
Posts: n/a
Default Re: oninit via remote shell

I get the solution of my Problem from a IBM guy
stdout/stderr of oninit has to be redirected:

for example: oninit >/tmp/oninit.out 2>&1
now it works

Ruediger


ruediger.papke@t-online.de wrote:
> Hi all,
> we have 2 servers connected via hdr and i need a script to change the
> status(primary/secondary) of these servers.
> The script consists of local and remote commands(hdrmkpri.sh,
> hdrmksec.sh , some copy-commands and some tests in the right order)
> The Problem:if i start a remote shell which contains an oninit-command,
> all commands in the remote script are executed, but the ssh/rsh command
> comes not back to the prompt.
> Example:
> server2:/usr/ifx/bin/ifx_start:
> #####################
> . env_ids_10.0 # load informix environment
> oninit
> echo "after oninit"
> #####################
> locally started on server2 it works and returns the prompt
>
> start on server1:
> ssh server2 "/usr/ifx/bin/ifx_start"
>
> -> all commands of the script are executed
> ...
> after oninit
> ....
> the ssh-command has no end, no prompt comes back!!!
>
> the original script is more complex, i reduced this to one
> oninit-command (i think, the problem comes from oninit)
>
> Our environment is Solaris and ids 10.0, but I had tests with same
> results on SUSE-linux 9.1 and IDS 9.40.
> And i tried rsh ... and ssh ... -> same problems.
>
> remote script with onmode works.
>
> Do you have any ideas, do you have an explanation??
>
> TIA
>
> Ruediger Papke


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com