1834533 Members
2567 Online
110069 Solutions
New Discussion

remsh/rsh prblm

 
dhanish
Regular Advisor

remsh/rsh prblm

Hi,
I am doing rsh to a hpux machine from a solaris machine.Now i have tried giveing
solaris#rsh hpux --> hpux is the hostname of my hp machine and solaris is the hostname of my solaris machine

it works !!!.But when i give

solaris#rsh hpux uptime

it does not give any o/p ...it just comes out to a hash prompt.

anbody has any clue...??

note: this command wrks on my other hp machine only this machine hostname :hpux is having prblm.
Never Say Die
36 REPLIES 36
Michael Tully
Honored Contributor

Re: remsh/rsh prblm

What does the remote system report when you give it some other commands such as 'ls', 'date', 'bdf' ?
Anyone for a Mutiny ?
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

does uptime give the correct output when logged directly into the hpux server ?

John.
dhanish
Regular Advisor

Re: remsh/rsh prblm

For all the command eg date, ls,bdf it just comes back at the hash prompt of the system from where i am doing rsh ie solaris machine.
Never Say Die
dhanish
Regular Advisor

Re: remsh/rsh prblm

yes all these commands give the correct o/p when logged in directly into the system.

thnks
Never Say Die
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

can you remote login using rlogin if not I bet you dont have an entry for .rhosts or the IP is not getting translated properly.

good luck
John.
dhanish
Regular Advisor

Re: remsh/rsh prblm

yes i can remote login to the server without passwd.The entry is present in .rhosts of the remote server.That works fine for me but i can execute any command remotely.

Never Say Die
Michael Tully
Honored Contributor

Re: remsh/rsh prblm

Hi,

You need to make sure that you have a valid '/rhosts' file for the user that you are using. If you don't this could be an expected result. Can you 'rlogin' to this server without using a password?

-Michael
Anyone for a Mutiny ?
Kenny Chau
Trusted Contributor

Re: remsh/rsh prblm

What shell is your account running in both Solaris and HPUX? If they are different shell, this may cause the problem.

Hope this helps.
Kenny.
Kenny
dhanish
Regular Advisor

Re: remsh/rsh prblm

yes my remote login without passwd works fine.


Never Say Die
dhanish
Regular Advisor

Re: remsh/rsh prblm

Both solaris and hp root user are using (/sbin/sh).
Never Say Die
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

can you try reversing the process and remsh from hpux to solaris

John.
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

can you check the output from this command

resh solaris . .profile 2>&1 \; uptime

John.
dhanish
Regular Advisor

Re: remsh/rsh prblm

Yes that works fine ..i did a #remsh solaris ls
from my hpux machine .
Never Say Die
dhanish
Regular Advisor

Re: remsh/rsh prblm

Hi,
there is no .profile on in my solaris machine under / instead there is a .dtprofile.But i tried with hpux#remsh solaris ls ...it wrks fine.
Never Say Die
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

have you checked the status of the remsh command after executing

print $?

if it returns 2 then it failed to setup the secondary socket connection.

if it returns 1 then it failed in another manner.

if it returns 1 , scary it says it worked fine.

John.
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

copy /etc/skel/.profile to / on hpux.

try remsh again

John.

dhanish
Regular Advisor

Re: remsh/rsh prblm

i tried the same from the solaris machine

solaris#rsh hpux ls; echo $?

1
solaris#


its gives 1 as the o/p.

Never Say Die
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

please ignore my last comment I misread your posting, unless there is no .profile on the hpux server.
dhanish
Regular Advisor

Re: remsh/rsh prblm

i have tried everything..comparing inetd.conf, /etc/services also...what can be the problem.???
Never Say Die
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi


we need to try to capture stderr , pleas try this

remsh hpux uptime >/tmp/testfile1 2>/tmp/testfile.err

cat /tmp/testfile1

cat /tmp/testfile.err

John.
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

hI

I have an old sparc I am booting now to test with , please confirm o/s versions for both servers.

cheers
John.
dhanish
Regular Advisor

Re: remsh/rsh prblm

Hi my sol version is 2.8 and hp version is 11.0 .John its not the probelm with os versions as such ...as its wrking with other HP-ux 11.0 machines .....but not with this particaulat hpux machine.
Never Say Die
dhanish
Regular Advisor

Re: remsh/rsh prblm

Hi i tried redirecting the o/p and error to file1 an file2 but both the files got created and are empty.
Never Say Die
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

im stuck now I have a sparc with 2.7 and HP with 11.00 and I appreciate its unlikely to do with versions I simply wanted to try to replicate at my end for testing. Its really not possible to test when I cant replicate but I shall keep trying.

The .profile was a red herring I played with it and it made no difference.

I think we need a real guru too help now.

John.