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.

Similar Messages

  • Hard drive works, but when plugged in hangs the system

    First of all, since this is not a Linux-specific problem I'm not sure this is the right place for this post.
    Anyway, for the past few years I've been using a 250GB IDE hard drive mostly to store backups on.  For quite a while it worked fine, but when  plugged in again after being removed so I could clean out the dust in my PC it didn't work quite right anymore.  It caused the system to hang and gave error messages remniscent of those detailed on this page.  After some fiddling it worked OK for a while, and then one day it randomly did this again.  I took the ribbon cable out, then the hard drive, and realized one of the pins was pushed in (at the time I thought it was broken).  After some reading I decided to sacrifice a ribbon cable.  What I did was yank a pin off of an old DVD drive that doesn't work and shoved it in the cable where the short pin was.  I made sure it was seated well, plugged in in, and hoped for the best.  To my delight it worked without a hitch for maybe a year or more.
    And then a little more than a month ago we had lightning strike a power line outside of our house and it fried my motherboard.  I now have a replacement board, but after all of the taking apart and moving around and stuff, the hard drive is back to its old antics.  The pin-in-the-cable trick wasn't working anymore.  After I realized that the pin wasn't broken half-way but rather pushed in, I grabbed some needlenose pliers and pulled it out.  It now will plug into any ribbon cable just fine and the computer recognizes it, but it's slow at POST and hangs the system when booting the OS, whether it be Linux or Windows.  Knoppix CDs boot just fine, although slower.  S.M.A.R.T. sees no problems.
    Basically I'm wondering 2 things.  First of all, is there anything I can do to get around the hangs?  And second, I'm considering buying an external hard drive enclosure for regular 3.5 inch hard drives and using it as an external USB drive.  Since the drive does still work and I can add/remove stuff while booted in Knoppix, and the main issue seems to be my system hanging, I figure, maybe, I can just plug in the drive when I need it after the computer is already booted up and it will work fine.  Does this sound like a reasonable expectation?

    What you hear may sound like it's the hard drive, but it's really an electronic type of noise. Same with my PB. Try what BGreg said, and wait for the drive to spin down - you'll still hear the noise.
    There was a thread about this issue several months ago, and IIRC the conclusion was that it's a normal noise, and that you should just ignore it if possible.
    If you must make it quieter, set processor performance to the lowest setting in Energy Saver preferences. But it's not going away completely.

  • My FTP works but is very slow, hangs on 'waiting for server', fix???

    Hi guys
    My FTP connects but its constantly hanging and saying 'waiting for server', eventually it connects.
    My other ftp clients connect instantly, its just DW, sometimes my filezilla may halt but not as bad as DW does.
    I can use port 22 and its instant but reading this http://forums.adobe.com/thread/734356?tstart=0 will tell you why I can't use port 22.
    Not sure what to do here, ive tried changing loads of settings and I get the same thing, I dont want to have to use an external FTP client as that would slow my workfllow considerably.
    Also I think its a mac issue, if i try this in another building on windows 7 it connects instantly.
    If i set my timeout to something really high like 90 seconds it eventually connects.
    Anyone got any ideas??
    Thanks

    So using a separate FTP client is out of the question? I ask because my workflow uses a separate FTP app - it makes it much easier to troubleshoot FTP, server, and file permission issues. And it doesn't crash Dreamweaver. So again, are you sure you can't adjust your workflow to use a separate FTP application? (I use Transmit on the Mac and it has some wonderful features including a built-in Sync capability)
    How do you have Dreamweaver's FTP functionality set-up?
    Are you using Passive FTP?
    Are you using a reverse proxy server in your network?
    Have you tried the Mac Network Utility to ping your FTP server?
    What kind of ping times are you getting?
    Do you experience network latency issues frequently?
    Do you have Mac OS X's Firewall enabled and have you tried disabling it before an FTP session - does this effect anything?
    Have you tried unchecking Dreamweaver's Use FTP performance optimization? (Site Definition->Advanced->Remote Info->Server Compatibility)?
    Do you have any network engineers in your IT department? Can they look at their information and maybe see what might be happening on the network?

  • Recnetly got a windo0ws update and now cannot use firefox..IE9 works but not firefox -- it hangs ..nonresponding

    Just did a securiyt update from microsoft and now firefox uses huge memory and hangs all the time.. I cannot use it anymore
    I am running sindows 7 and it has always worked jsut stopped with recent windows updates.

    -> Start Firefox in Safe Mode by holding down SHIFT key while starting Firefox
    * As an alternative method, press '''Win''' + '''R''' key combination and enter one of the following in the Windows Run box:
    ** firefox -safe-mode
    ** "C:\Program Files\Mozilla Firefox\firefox.exe" -safe-mode
    ** "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -safe-mode
    * Firefox Safe Mode window will appear -> select all options and click '''Make Changes & Restart'''
    -> click '''Firefox''' button -> go to '''History''' and click '''Clear Recent History''' -> ''Time range to Clear: '''''select Everything''' -> click '''Details''' button -> select all options and click '''Clear Now'''
    Check and tell if its working.

  • Flash works, but causes IE8 to hang when multiple tabs are open

    I have a problem which is very consistent...  If I open IE8 to my home page (non flash), then open another tab (and go no where, just a clean tab) and then try to close IE completely (saying yes to close all tabs prompt).  IE hangs for about 30 seconds before shutting down.  If I disable the add-on for flash and then repeat the steps, IE closes right away without incident.  Any thoughts?  Happens every time...
    As a side note, this is a XenDesktop Windows 7 image fully patched and running the most current version of the Flash plug-in.
    Thanks in advance!
    Eric

    See http://kb.mozillazine.org/Firefox_crashes and [[Firefox crashes]]
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    You can open the <i>about:crashes</i> page via the location bar, just like you open a website.
    See: http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter) and [[Mozilla Crash Reporter|Mozilla Crash Reporter: Breakpad]]
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.0 r22
    * Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.

    I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.I have lost my resource cd .

    If you are running Lion or Mountain Lion, the drivers are downloaded from within Bootcamp Assistant. If you are running Snow Leopard the drivers are on your Snow Leopard install disk.
    Read the Bootcamp Install Guide for your version of OSx. http://www.apple.com/support/bootcamp/
    Bootcamp questions should be asked in the Bootcamp forum where the Bootcamp gurus hang out https://discussions.apple.com/community/windows_software/boot_camp

  • I am unable to open my Photoshop program after installing the entire Creative Suite: Premium Production 6. All other programs work, but with Photoshop it says that the program is "locked or in use by another user". I need this fixed immediately.

    I am unable to open my Photoshop program after installing the entire Creative Suite: Premium Production 6. All other programs work, but with Photoshop it says that it "Could not open a scratch file because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the 'Properties' command in the Windows Explorer to unlock the file." Then I select "OK" and the next message comes up "Could not initialize Photoshop because the file is locked, you do not have the necessary permissions, or another program is using the file. Use the 'Properties' command in the Windows Explorer to unlock this file. I installed all of the programs on the same day from a CD. I need this fixed immediately.
    I am not interested in switching to Creative Cloud, so don't even suggest it. I spoke to Mashmi (or something to that effect) on the "Support" Chat and there was absolutely no support. Useless actually.
    Thanks in advance.

    Could not open a scratch file because the file is locked or you do not have the necessary access privileges. (…) | Mylen…
    Mylenium

  • Report works but not when scheduling

    Hi,
    I have a report that copies table contents to a text file. When using this report from se38 everything works but every time we schedule the job from sm36 it gets status cancelled.
    The input to the report is what table should be copied and where it should be copied to.
    The error message is from sm36 job scheduling is: "Could not ascertain code page"
    Message class: FES
    What does this mean?
    regards
    Baran

    Where do you download the text file to?
    If you try to save to your PC, it will never work.
    You can not download to a local drive, only to UNIX or print the file to the spool. Then, later, you'll need to retrieve it either from UNIX or from the spool.

  • Print from ipad if i connect a usb connector to my ipad can i connect my printer to it and print??as im thinking of buying the new ipad for work but i must be able toprint

    hi can any one help i want to get the new ipad for work but i need to print.i see i can buy a usb connector can i print if i plug my printer into the usb.

    If you have a USB printer connected to your computer, Mac or PC, you can activate or install AirPrint and print from your iPad over wifi without any special apps.
    Activate AirPrint in Mac OS X;
    http://netputing.com/airprintactivator/
    Add AirPrint to Windows;
    http://jaxov.com/2010/11/how-to-enable-airprint-service-on-windows/

  • My phone will randomly disconnect from the wifi and when I retype the password it says it is wrong. It will eventually work but I have to wait for a message to pop up on my screen to allow me to retype the wifi password.

    When I first got my phone it worked perfectly fine with the wifi. Although later on I began to have problems connecting it. It will randomly disconnect from the wifi and when I try to retype the password it tells me it is wrong, although it is right. It will eventually work but in its own time, a message will pop up and allow me to type in the password and it will work. But sometimes it takes an hour or more and sometime it takes 10 minutes. I've seen where other people have had this problem but I don't know how to fix it. I'm not sure if it's an issue with my phone or if it's with my wifi. Does anyone know how to fix this?

    Does this happen with all Wi-Fi hotspots?  A specific one?
    Have you tried forgetting the Wi-Fi connection and then reconnecting to it?
    What about power cycling the Wi-Fi router?

  • Why iPhone 6 Plus sound microphone not working, but in the case of sound recordings in conversation mode work?

    Why iPhone 6 Plus sound microphone not working, but in the case of sound recordings in conversation mode work?

    Sighhhh, wasted so much time yesterday and today going around Sony centre and then carphone warehouse. They told me to come back after Easter.
    I came home, banged the phone against the wall and it worked.
    Turned out that mic was working on loud speaker and when using headphones so I thought that the secondary mic is working and the main one (placed with the speakers) isn't. So I banged that part against the wall slightly (in plastic case to prevent scratches) then put the phone underwater, waited for it to dry and now it's working. Idk how well and if it's of perfect quality again but people can hear me well.

  • How do I change my user name in syn? I typed in the wrong email address. And I cancelled syn thinking this may work but no luck.

    How do I change my user name in syn? I typed in the wrong email address. And I cancelled syn thinking this may work but no luck.

    You have to clear saved password for this page:
    # Open you login page (where you have to enter username and password).
    # Right click on page and select '''Page Info''' form context menu.
    # On last tab ('''Security''') there is '''View saved passwords''' button, click it and delete all saved passwords for this page.
    # Also clear all related cookies (just in case) there is button for this next to first one.

  • I've been working with AI for some time time now & would love to have a light weight viewer to open the files. The bridge is fine when we're working but just being able to toggle through folders is impossible otherwse

    I was thinking of keeping things a bit easier in the way of clicking & dragging artwork into Illustrator. The bridge is fine when we're in the print shop & working but still has problems with some of the file extensions with the vectors. A lightweight no frills viewer that would open anything that Illustrator would open, so we could just burn through our regular file folders without opening AI or the bridge would be a great deal. Add the PS extensions too & we could dance by the firelight. Just offer it to those with the software & the valid codes for their software. I mean if there would be a problem with folks just grabbing it up. Love to have it though.

    A thumbnail preview file icon option would be nice. CorelDRAW has had this capability for its past few versions. It does make it a whole lot easier conducting searches in Windows File Explorer. You can find the right files pretty quickly and then drag/drop them into CorelDRAW.

  • TS3367 facetime used to work but now does not work on any of my devices

    I have been in regular contact until about 4 days ago using facetime on my iphone 5 imac 10.7.5. ipad 2 now none of these devices work from incoming calls from Philipinnes. Take note the caller had latest macbook pro 13 inch  and is able to call Guam on fatetime with success. What is happening why is incoming calls alway failing. This has been 4 days running and is not good enough. Okay I havent got the latest updates but why in the late few days whould this effect anything. I mean 3 devices and none of them work. This is most frustrating and annoying. I have intead used skype which does work but at night time the camera is not as clear. Tanke note also earlier in the year I received calls from Vietnam and although I did have dropouts was always able to connect only these last four days have had no success. Also I have not been able to call out. The wireless has full bar and am near the modem that is not an issue. Unless there has been a recent change why is htis not working all of a sudden.

    THere seems to be a FaceTime issue and some users who have been in contact with Apple support claim that Apple is working on this.
    I have read many posts on the issue and have seen that there are many reporting that when they have updated their various devices to the latest software, the issue has been resolved.
    You can wait for Apple to resolve the issue OR you can update everything to the latest software and see if this solves your issues.

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

Maybe you are looking for