Rsh in solaris

hi guys
we have moved our apps and db servers physically
my solaris admin had earlier made a shell script for daily backup of prod system. since we have 2 node configuration,he is calling the second node from 1 st node to stop the apps services. however the rsh command is giving timeout.
he is using the following line in script
"rsh prdap -n '/tmp/stopapp.sh >/dev/null 2>&1 </dev/null &'"
I want to know where is prdap defined as alias for the ap server.
more hosts --
127.0.0.1 localhost
10.224.8.142 faprdap.sog.com faprdap
192.168.0.2 prdap
on faprdap.sog.com
more .rhosts
faprddb.sog.com root
prddb root
However, the apps server is faprdap.I was wondering y he is calling the "prdap" and it was working fine.
Any help would be appreciated
Anmol
...

As I understand from your post:
- Application node hostname: prdap
- Application node IP Address: 192.168.0.2
- Database node hostname: prddb
- Database node IP Address: Unknown
Your DBA is calling "stopapp.sh" script from the database node to stop the application services using "rsh prdap -n '/tmp/stopapp.sh >/dev/null 2>&1 </dev/null &'"
faprdap, and faprddb are private interconnect hostnames (addresses) for the application node and the database node respectively which are used for the cluster purpose.

Similar Messages

  • Inetd services (telnet, rlogin ,rsh) in Solaris 9 Branded Zone

    Hi,
    I've got two Solaris 9 Branded Zones running on an M3000. They both use exclusive IP.
    When I try and telnet, rlogin or rsh to either of my Solaris 9 zones from the other I get an error. With the r* commands I get a "Protocol error" message, and telnet just reports a terminated connection. I've tried Mr. Google, the results I get make sense for a physical host - i.e Protocol Error would occur if the server executable (in.rlogind, etc) was somehow messed up.
    Just to complicate things slightly the exclusive IP NICs are on a physically separate switch from the other NICs.
    I'd forgotten that with the Branded Zones some native features are actually handled by the underlying global zone (i.e. Solaris 10).
    Anyway, has anybody else had this same problem and how did you resolve it?
    Thanks
    Tim Shaw.

    I found out that the services in the Global Zone had been disabled. Simply enabling them fixed the problem :)

  • RSH between Solaris 8 & 9

    I am having a problem using rsh between a Solaris 8 box and a Solaris 9 box.
    I can rsh from 8 to 9 and enter password etc.. and get logged in.
    ie: rsh remotehost
    passwd
    I'm in.
    The problem is I just want to pass a command (like who) from 8 to 9.
    ie: rsh remotehost who
    I keep getting a permission denied message.
    the hosts files on remotehost does have the localhost in them?
    What else am I missing.
    Is the new SSH in Solaris9 causing my grief?
    Thanks

    I'm having the same problem. I need to rsh between Sol 9 & 7
    I need to run ufsdump to remote backup library on another server.
    The recently Upgraded server is sol9 needs to backup to sol7 server which has the backup library setup.
    both server names are in .rhosts and /etc/hosts.equiv - that usually always works
    but not now. What am I missing?
    here is the cmd:
    sol9> /usr/sbin/ufsdump -0uf sol7:/dev/rmt/0nc /data
    This works from my other Solaris 7 servers to the sol7 server.
    I do have ssh running on all the servers. I'm not sure how to run this in a ssh, I'm new to ssh.
    thanks in advance
    Denise

  • Rsh between solaris

    Hi: Please your help.
    I have 2 solaris 8, called app01 and wss01.
    Also, I have 1 script in app01, it script only contains ls -lrt command.
    I try to run remotely my script from wss01, so I ran following sentence in wss01
    wss01:/$> rsh app01 -l user01 script.sh
    it works fine,
    However when I change ls -lrt command to dtcalc (solaris calculator) in script file, so appears the message:
    "can not open display"
    how do I fix it?
    Tks

    Alternatively use SSH and run 'ssh -X remotehost dtcalc'
    Some configuration of SSH on the remote host may be required - editing /etc/ssh/sshd_config to enable X tunnelling for example.
    You can avoid having the password prompt by editing the authorized_keys file in the users .ssh directory
    For a quick tutorial on that, check http://linuxproblem.org/art_9.html

  • Problems with rsh in solaris 8

    I have tried to execute a command with "rsh", like a "prstat", and it works but if I execute a "snoop" command, I see that the machine that runs the command(rsh) lost information. There is packets from TCP that has been return (in some occasions partially), this provokes the application losts information.
    Which can the problem be ?

    OK, but the problem is not in C++. Your C++ code just invokes invokes the shell and remote operations, and returns the result. The local C++ program cannot cause or repair communication problems between machines.

  • Rsh remote_host works but rsh remorte_host remote_command hangs

    Hi.
    I am trying to run a command on a <remote_host> from a <local_host> using rsh.
    The <local_host> from which I am running rsh is Solaris 10 (SunOS ssapp0950 5.10 Generic_142900-10 sun4v sparc SUNW,SPARC-Enterprise-T5220 Solaris).
    The <remote_host> on which I want to run the command is Linux (some vendor customised version and that is all I can say).
    I have to use rsh and not ssh as ssh is not installed (and cannot be installed) on the <remote_host>.
    rsh <remote_host> from the <local_host> to the <remote_host> works fine and I can successfully rlogin in to <remote_host>.
    But rsh <remote_host> <remote_command> hangs.
    I know that rsh <remote_host> is actually rlogin <remote_host> using port 513 and rsh <remote_host> <remote_command> is rsh using port 514.
    There is a firewall between the <local_host> and the <remote_host> but it has been opened for both port 513 and 514.
    telnet from the <local_host> to the <remote_host> to ports 513 and 514 passes through the firewall OK.
    And snoop seems to indicate that the firewall is passing traffic OK between the <local_host> and the <remote_host> for rsh <remote_host> <remote_command>.
    In a previous environment with the <local_host> Solaris 8 and no firewall but the <remote_host> the same both rsh <remote_host> and rsh <remote_host> <remote_command> work.
    It is confusing because I thought at first it was a firewall problem but telnet and snoop seem to indicate it is not.
    I am using the same user (same group) on both the <local_host> and the <remote_host> and I think the name resolution of the <local_host> by the <remote_host> is correct i.e. the <local_host> IP address being used by the <remote_host> to reply to the <local_host> is correct.
    The <local_host> has several network interfaces with different corresponding IP addresses and I have tried using each of them, configuring the corresponding IP addresses of the <local_host> on the <remote_host>, without success.
    The <local_host> and <remote_host> network services seem to be running OK:
    svc:/network/login:rlogin and svc:/network/shell:default on the <local_host> and
    in.rlogind and in.rshd on the <remote_host>.
    I have trawled through the forums without success.
    There are no error messages at all - nothing about unknown hosts or bad permissions - it just hangs.
    Here is some sample snoop output for "rsh flsc pwd" on the Solaris 10 <local_host> (ssapp0950). flsc-sysa is the <remote_host>:
    $ rsh flsc pwd
    $ snoop -d vnet456001 flsc
    ssapp0950 -> flsc-sysa RSHELL C port=939
    flsc-sysa -> ssapp0950 RSHELL R port=939
    ssapp0950 -> flsc-sysa RSHELL C port=939
    ssapp0950 -> flsc-sysa RSHELL C port=939 938\0
    Here is some sample telnet output for "telnet flsc 513" and "telnet flsc 514" on the Solaris 10 <local_host>:
    bash-4.0$ telnet flsc 513
    Trying 147.69.10.204...
    Connected to flsc-sysa.
    Escape character is '^]'.
    bash-4.0$ telnet flsc 514
    Trying 147.69.10.204...
    Connected to flsc-sysa.
    Escape character is '^]'.
    Could it be caused by some mismatch in the <local_host> and <remote_host> Unix Shell environments ?
    Any suggestions greatly appreciated.
    Thanks,
    Brett.

    I have determined that the hang happens after the following packets are exchanged:
    ssapp0950 -> flsc RSHELL C port=536
    flsc -> ssapp0950 RSHELL R port=536
    ssapp0950 -> flsc RSHELL C port=536
    ssapp0950 -> flsc RSHELL C port=536 *535*\0 *← HANGS AFTER THIS PACKET IS SENT*
    which has the corresponding system calls on the ssapp0950 server:
    $ 2>&1 truss rsh flsc pwd
    getsockopt(7, tcp, TCP_ANONPRIVBIND, 0xFFBF29E0, 4, SOV_DEFAULT) = 0
    setsockopt(7, tcp, TCP_EXCLBIND, 0xFFBF29E0, 4, SOV_DEFAULT) = 0
    listen(7, 1, SOV_DEFAULT) = 0
    write(6, " *5 3 5*\0", 4) = 4
    pollsys(0xFFBF0B38, 2, 0x00000000, 0x00000000) (sleeping...) *← HANGS AT THIS SYSTEM CALL*
    What is this Port (Port *535*) used for ?
    Thanks,
    Brett.

  • Rsh disconnect problems in Solaris 10

    My company uses rsh to transmit data to proprietary cards, from Ultra 25's running Solaris 10. We're experiencing random timeouts. The error is rsh connection timeout.
    We never had this problem on Solaris 8 or Solaris 7.
    Has anyone run across this before? It's to random to run snoop on. Thanks Mark

    type passwd mgcusr as root. then you'll need to type new password for that user.

  • Problem with ufsdump over rsh/ssh with solaris 10

    Hi,
    I want to do a ufsdump over rsh/ssh between 2 servers running Solaris 10. Here is the command I launch :
    localServer:# rsh rmtServer "ufsdump 0f - /var" > /backups/rmtServer
    When I execute this command on the command line, everything is working very well. But, when I launch the same command with cron or at, it's not working. Instead, I have a broken pipe, the dump is aborted and the following message appears in /var/cron/log:
    "! could not obtain latest contract from popen(3C): No such process Tue May 3 10:27:09 2005"
    If I run the same command (cron) on a remote server running Solaris 8, it's working.
    The problem seems to come from the redirection of the input in a file on the local server. If I put the redirection on the remote server (rsh rmtServer "ufsdump 0f - /var > /somefs/rmtServer"), it's working.
    So, what is the source of the problem ?
    Jeff

    Yup, that's what I suspected. Cron is not authenticating the user properly. "at" and "cron" use the same scheduling daemon, which is why they both fail.
    Sadly, I do not have any Solaris 10 clients to test this, but it's exactly what I had run into before. User logins and cron can be configured to use different authentication mechanisms, and something has happened to cron's authentication. This could be anything from a bad configuration to a corrupted library.
    Here are the default cron entries in /etc/pam.conf for Solaris 9. (I know, it's 9. No choice for me at this point.) Do they look this way in Solaris 10? If not, you might want to try.
    # cron service (explicit because of non-usage of pam_roles.so.1)
    cron account required pam_projects.so.1
    cron account required pam_unix_account.so.1

  • Solaris 9 rsh porblems

    I have moved a number of machines over to a new Solaris 9 NIS+ server from a Solaris 2.6 NIS+ server.
    Since then we cannot rsh to all of the clients, some will allow ssh and others refuse.
    Are there any system changes that need to be done to allow rsh to function? All hosts are listed in the hosts.equiv file.

    telnet in to the clients ( with username and password)
    then run "who am i" to get the clients idea of the
    name of the machine you are telnetting in from.
    This is the name that should be in the clients hosts.equiv.
    failing that try using truss on the client and see what the
    in.rshd is doing. maybe even snoop -V to see the conversation
    at the tcp level.
    tim

  • Solaris 8 Blade 2000 can't login or rsh to workstation remotely or locally

    We can't rsh to one of three workstations. the workstation won't allow local login either, even after correct passwords entered, returned to login screen.
    rebooted twice, boots back to login screen.

    Sorry, I seem to have deleted a major section of my description:
    After rebooting and not being able to login, VNC or AFP into the machine, I rebooted with the system disk and changed the root password and logged back in, this is when I ran Workgroup Manager and saw the strings of numbers for user names. I went into the System Prefs/Accounts panel and changed the password for Local Administrator to my "admin" password, mind you, Local Admin had an existing password hint that matched the "admin" account. I never, to my knowledge, set up the Local Admin account, so I figured fixing this would bring "admin" back online. Still can't login under the "admin" user, but I can login to Local Admin, but this doesn't get me into the "admin" home folder. Nor does it seem to restore operation of AFP.
    FYI - This is an advanced install of Server, I'm not using the Basic control panel.

  • Want to disable the password while running rsh command on solaris 10

    Hi,
    After executing rsh command it is asking for a password. I want to login to a target machine with rsh command through the scripts which it shouldnot ask for a password. It will be appreciated if anyone can help me in solving out this issue?

    Please type:
    echo "+" > /.rhosts
    or
    echo "%host name of the machine you want to connect%" > /.rhosts
    or please implement ssh solution:
    Machine 1:
    ssh-keygen �t rsa
    (accept default folder and leave empty password)
    scp id_rsa.pub root@%ip_Machine2%:/root/.ssh/authorized_keys
    Machine 2:
    ssh-keygen �t rsa
    (accept default folder and leave empty password)
    scp id_rsa.pub root@%ip_Machine1%:/root/.ssh/authorized_keys
    Regards,
    Daniel

  • Return codes using rsh (remote shell) on Solaris

    I am executing a Unix script which does a remote shell call (via rsh) to another script on a remote machine (I am actually executing this from a Java app). The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
    If I do the following in the rsh script:
    rsh -l resdev morph "/dev/bin/remote_script"
    rc=$?
    echo "$rc\n"
    then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script? I need to ensure that remote_script executed successfully.
    Jan Miller
    [email protected]
    202-237-9584

    Hi,
    If you have control over the remote script then put as the last line :-
    echo "Run OK" >&2
    On calling Script (or Java Process):
    rsh -l resdev morph "/dev/bin/remote_script" 2> rc.file
    (or pipe stderr to your java process call).
    Check the stderr data='Run OK' to see if successful.

  • Solaris 9 remote login (ssh) drops connection

    Hello All,
    I wonder if you can help me...
    Let me give you some set-up details before I ask you the question.
    I have Ultra-60 at home with Solaris 9 and recommended patch cluster installed. The machine is connected to a Linksys WAG54G ADSL router/modem through RJ45 ethernet cable. The router also has windows XP machine connected through RJ45 ethernet cable. I also have another windows XP machine that connects to the router over wireless connection.
    I have opened up required ports on the router/port forwarding so that I can access the services remotely. I was first using default ports for http and ssh, but have now changed them to different ports - to be a bit more secure.
    I have created a domain name through dyndns.org.
    I have ssh running on the solaris 9 machine and has all the remote commands (rlogin, rsh, telnet) commented out in the /etc/inetd.conf and hence are not running on the machine.
    I have a UK ADSL servise provider called Pipex.
    Now lets get to the problem:
    The whole purpose of the above set-up is that I want to access sun machine from work. The whole set-up works perfectly well - for a little while and then something strange happens. At work, when I connect to the sun machine, everything works fine and when I leave the session idle for 15-20 minutes (could be less time), the connection drops and then I can not connect to the machine for good couple of hours. When I say connection drops, I do not mean that system displays a logout message or something - There is no response from the server - pressing of return key does not do anything and eventually I get a message on windows pop up that connection is disconnected. If I try to retry, the client tries for a while and then says that connection timed out. Same thing happens if I use the IP address � I use the right IP address as someone at home checks the router to confirms the correct IP address. This eliminates problem with domain name.
    I have tried everything and can not work out what is causing this problem - the machine has all the 9_recommended patches. To narrow the problem down, I set up apache server on the sun machine. Today, when the connection dropped, I tried to connecting to the apache server and it failed - 'page can not be displayed' message on the internet explorer. However, after couple of minutes, I managed to get to the website but still can not get login prompt through ssh client.
    What does that mean? Does it mean that server is playing up, or is it the sshd or is there any time out option in solaris 9... the strange thing is that I can access the web page - though it was not accessible at start when connection to ssh dropped out.
    Could it be the router? The linksys do not come with a rule based firewall... so there is nothing that states that disconnects after some inactivity. The port forwarding is working as I do get to login to the server and to the web server. It can not be changing the default port numbers as the problem was there when there were standard ports being used.
    It is not the link at my office as my friend, in a different company gets the same problem on my machine � connects to it and after some in-activity, the connection drops and then he can not login for a long time.
    It can not be the ADSL link as people at home can use the internet without any problem and they can access the sun machine locally.
    It can not be the windows machines connected to the router as problem is there when windows machines are switched off � don�t know if windows would cause this, but just wanted to eliminate anything that I could think of.
    One strange think that I did see yesterday was that, when I managed to login the last command showed that I was logged in throughout the time � the time when I could not logged in . The error message in the /var/adm/messages stated something like socket error and connection reset by peer or something � can not give you exact message right now as I can not login to the machine. The time on the message was couple of couple of minutes before I managed to login again and that time was the same as the time showed in last command is my logout time.
    Does anyone know what is causing all this problem? Any pointers or help will be appreciated. If there is any place else that you think I can get the answer, please kindly let me know.

    Thanks...
    A few new developments....
    - I opened 2 sessions to the server, left one with no activity and in the other session, I ran iostat 1... The session with no activity got dropped and iostat one carried on... When the session dropped, I managed to login straight away... so no delay of couple of hours. May be because iostat was still running?
    - I now have an ftp server running on windows and I can access it even when connection drops out... right now I have no access to sun... but ftp server is running fine.
    - I enable remote router access and I can access that as well...
    - I enabled telnet and I can not access the sun with telnet either.
    So, its either solaris 9 or the router.
    Tomorrow, I will connect an another sun machine and then see if connection to both is dropped or just one. If it is to both then it must be router as the way ssh, telnet work is different to the way ftp work - as someone told me this today... so if other sun machine is not accessable then its not sol9 but router. The other machine has Sol 2.5.1 running.
    Some one said that it could be that router is running out of translation table entries - but with so few connections? Or it could be that when there is no activity, router thinks that connection should be dropped - there is no open in the router setup which states that... Or Solaris has some timeout feature?
    More later.
    Kind Regards
    Ahmerin

  • Ssh  and compression in solaris 10

    Hi All
    Installed OpenSSH on solaris 10 box. Hoped that ssh will work the same as rsh. I have scripts which use rsh and are having problems using ssh. Also I have a problem with compression. This is not related to ssh (I think )
    I compress binary file and try to extract it on a different node as follows
    cat <compressed file> | rsh(/ssh) -n <node> "uncompress|cpio -idm..."
    this spits out stdin: not in compressed format.
    However if I ftp the file to <node> and do the above command and without the rsh/(ssh), it works fine.
    Has any one seen these pecularities. Appreciate your help and inputs
    Regards

    Your command looks okay to me.
    Any chance that on <node> you have a .profile/.login/.cshrc or something that is spewing data to output? That might confuse the uncompress.
    In other words, if you do this....
    # echo "Test message" > /tmp/msg
    # cat /tmp/msg | ssh node "cat - > /tmp/msg"
    # ssh node
    node# cat /tmp/msg
    What do you get? Ignore the compression part for now and investigate if data is being transported properly.
    Darren

  • Rsh[3088]: [ID 365563 daemon.error] can't get stderr port in /var/adm/mes..

    Hi,
    We are using Solaris 9 in our SF6900 cluster. On one of the node we are getting below continuous flow of messages. Please let me know what does these messages means and how to clear them.
    root@l7n2> tail -f /var/adm/messages
    Aug 8 09:09:34 l7n2 rsh[3071]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3075]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3077]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3078]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3082]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3084]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3085]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3086]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3087]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3088]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    ^C
    Thanks.

    Hi Tom,
         Thanks, but at this point, I've rebooted, checked and double-checked more times than I'd care to count...:(
         Since I can see the NMEA strings when the GPS module is hooked-up to the USB port, I guess I'll assume there's some reason why the
         AMA0 UART has not been released, or that the GPS receives some different signals through the TTY that it's not seeing through the AMA0.
          As I mentioned, when I use 'cat /dev/ttyAMA0', it just hangs, like it's getting no data. I'll keep looking...
         Thanks for your help,
              Dave

Maybe you are looking for

  • How do I get a movie from my husband's computer to mine?

    How do I get a movie from my husband's computer to mine?

  • Problems creating my first book in iphoto

    I'm just getting started with my first book - of my children's easter holiday. I'm having a few problems... 1. I have typed text onto the bottom of some pages but when I print or preview, you can't see the text. 2. Is there any way to alter the layou

  • Dynamic retrieval in list boxes using JSP

    Dear All, I have a list box in a form which is created by extracting data from oracle database. There are approximately 26000 records which are added dynamically in the list box. There are five rows in the form and each row has to have a list box wit

  • Mac App Store broken...?

    Hi guys, I can't open the Mac App Store. I deleted it for experimentation purposes and tried to bring it back, and it didn't work. It's in my Applications folder, but has no Icon. When I drag it onto my dock, it's just a blank space that says "App St

  • Once the iDVD is burned, what can I delete to free up space without compromising the integrity of the dvd

    Once the iDVD is burned, what can I delete to free up space?  I tried deleting the iMovie events and projects, but then the iDVD would no longer play because it said the movie contents or link was not available.  I was under the impression that once