Operating System - HP-UX
1752641 Members
5743 Online
108788 Solutions
New Discussion юеВ

Re: HP-UX 11.00 rsh command output not being returned

 
SOLVED
Go to solution
TTr
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

> I have .rhosts set up in my home directly which is nfs mounted.

Is that on the remote server?

> Server is a J5000 running 11.00.

I assume that is the remote server.

What OS is the local server? What is the login name on the local server?
Vanessa Mason
Occasional Advisor

Re: HP-UX 11.00 rsh command output not being returned

local server is SOlaris 10. i am logged on as myself on local server.
TTr
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

Does the "myself" account exist on the J5000 server?
On the J5000 server in the "myself" home directory does the .rhosts exist? Does it contain the name of the solaris10 server? Is is ONLY readable by the "myself" account? It must NOT be writable by the group or by others.

On the solaris10 server type
"rsh j5000-server-name" and tell us what the output is.
TTr
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

Two more things to check. On the J5000 server look in /etc/inetd.conf and find the "shell" line. Ensure that the remshd does not have the "-l" option.
Check the /var/adm/syslog/syslog.log on the J5000 to see if it logs anything when you run rsh on the solaris server.
Hakki Aydin Ucar
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

>Vanessa: local server is SOlaris 10. i am logged on as myself on local server.

So recommendation: did you try remsh from HP-UX to Solaris ?
if it works it remained of some event in past I faced. I was able to remsh from one Solaris 10 server to another Solaris 8 but vice versa ; from 8 to 10 , I was unable to do even though all setups were correctly on both server.
It turned out a special software caused this on Solaris 8.
This is my history, maybe ,you can look at the problem another side.
Fabio Ettore
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

Hi Vanessa,

suggestions to isolate the issue:

- as already mentioned try viceversa from HP-UX to Solaris: does it work?
- do other systems remsh successfully to the HP-UX system?
- does the HP-UX system itself to remsh itself (remsh localhost date)?
- does the Solaris box remsh successfully to other systems?
- if all of above don't point to a direction I suggest using truss (afaik it's the tusc on Solaris).

Anyway I wouldn't be sure the problem is on HP-UX side.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Vanessa Mason
Occasional Advisor

Re: HP-UX 11.00 rsh command output not being returned

suggestions to isolate the issue:

- as already mentioned try viceversa from HP-UX to Solaris: does it work? YES

- do other systems remsh successfully to the HP-UX system? NO

- does the HP-UX system itself to remsh itself (remsh localhost date)? remshd: getservbyname

- does the Solaris box remsh successfully to other systems? YES

- if all of above don't point to a direction I suggest using truss (afaik it's the tusc on Solaris).
Steven Schweda
Honored Contributor

Re: HP-UX 11.00 rsh command output not being returned

> - does the HP-UX system itself to remsh itself (remsh localhost date)? remshd: getservbyname

It might be helpful if you would simply
copy+paste the actual command with its actual
output, so we wouldn't need to guess what
you're doing and what happened when you did
it.

On the HP-UX system:

hostname
cat /etc/hosts
remsh localhost # No command here.
remsh
Fabio Ettore
Honored Contributor
Solution

Re: HP-UX 11.00 rsh command output not being returned

If the remsh fails even on localhost definitely the problem is on HP-UX side.
Message "remshd: getservbyname" could be a known issue fixed by patch PHNE_33790:

8606268453:
remshd fails to execute when the service name database
does not contain an entry for "kshell", and displays the
message: "remshd: getservbyname".


Check if the patch is installed, if it's not so you can install it even now (it doesn't have dependencies, no reboot, only 474Kbytes).

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Vanessa Mason
Occasional Advisor

Re: HP-UX 11.00 rsh command output not being returned

Thanks everyone. Fabio's suggestion to install patch resolved the problem.