Operating System - OpenVMS
1752802 Members
5837 Online
108789 Solutions
New Discussion юеВ

Re: remote shell between openvms and hp-ux

 
SOLVED
Go to solution
Srikanth Arunachalam
Trusted Contributor

remote shell between openvms and hp-ux

Hi,

We have client in open vms and server as hp-ux. We need to carry out rsh calls between vms and hp-ux.

This rsh commands should be through DCL scripts of vms and shell script of hp-ux.

From VMS, the dcl script makes use of calls like :-
rsh 'unix_node' /user=master "/usr/local/appl/process_idate.sh" "param_file_name"
(pls note that there is no pswd specified).

From hp-ux unix, the shell script
rsh -n -l $VAX_USERNAME $destination_vax \
'@oms_disc0:[kernel.command] \
omc_copy_from_server' \
$source_node $UNIX_USERNAME \
'"'${source_file}'"' \
"${destination_file}" > /dev/null


the setting done on the vms& hp-ux are as follows :-
on vms,
tcpip add proxy oms_master /REMOTE_USER="master"/host="demouds"/permanent
on hp-ux, the entries are as follows :-
/etc/hosts.equiv
NUTTS oms_master
nutts oms_master

I am not allowed to make use of rhosts file entry for security reason. When I use remsh from hp-ux, remsh gets executed sucessfully.

remsh nutts -l oms_master -n '@oms_disc0:[kernel.command]omc_copy_from_server'

However, from vms the command
rsh ferret /user=master "cat /etc/hosts"
gives error of
%RSH-E-FAILED, remshd: Login incorrect (from remote)

Please help.

Thanks,
Srikanth
8 REPLIES 8
Steven Schweda
Honored Contributor

Re: remote shell between openvms and hp-ux

What do you have in "/etc/hosts.equiv" for
the (remote) HP-UX system (which works)? Do
you need to use the full (qualified) node
name ("nutts.wherever.com" (?))?

Have you tried quoting the user name on the
VMS command line? DCL may convert it to
upper case, which could cause trouble at the
HP-UX end. (But "rsh" could convert an
unquoted name to lower case, so an
all-lower-case name is probably safe.)

> /etc/hosts.equiv
> NUTTS oms_master
> nutts oms_master

> /user=master

Not "oms_master"?


As usual, the VMS and TCPIP versions might
be interesting.
Srikanth Arunachalam
Trusted Contributor

Re: remote shell between openvms and hp-ux

Hi,

Entry in /etc/hosts is
132.146.22.143 nutts.omc.bt.co.uk nutts

Entry in /etc/hosts.equiv is
132.146.22.35 master
ferret master
132.146.22.143 oms_master
NUTTS oms_master
nutts oms_master

the vms version is "OpenVMS V7.3-2" (we will migrate it to itanium server (Openvms 8.1-2 after 3 months time)

NUTTS>tcpip
TCPIP> show version

HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 4
on a AlphaServer 1200 5/533 4MB running OpenVMS V7.3-2

The rsh command with /user=master is correct. Reason being when I did rsh ferret /user=master , it prompts for password on hp-ux system and proceeds to connect to the system.

Please help me in resolving this problem.

thanks,
Srikanth
Srikanth Arunachalam
Trusted Contributor

Re: remote shell between openvms and hp-ux

Hi,
If I have .rhosts file with following entry it works
132.146.22.35 OMS_MASTER
nutts OMS_MASTER
NUTTS OMS_MASTER

If the same entry is placed in /etc/hosts.equiv it doesnt work.

Is there any clue here.

Thanks,
Srikanth
Srikanth Arunachalam
Trusted Contributor

Re: remote shell between openvms and hp-ux

Hi,

Sorry there was a mistake in entry to .rhosts file. Just the entry of
"nutts oms_master" in .rhosts file is suffient in connecting from vms to hp-ux.

Thanks,
Srikanth

Srikanth Arunachalam
Trusted Contributor

Re: remote shell between openvms and hp-ux

Hi,

The problem is resolved after the permission on /etc/hosts.equiv file was set to 777.
Just entry of "nutts oms_master" in /etc/hosts.equiv was suffient.

Thanks,
Srikanth
Steven Schweda
Honored Contributor

Re: remote shell between openvms and hp-ux

> The problem is resolved after the
> permission on /etc/hosts.equiv file was
> set to 777.

Well that must be wrong, but it may be
informative. Read permission for everyone
should be more than enough. Who owns your
"/etc/hosts.equiv" file? Who should own it?

You might ask the HP-UX forum for that datum.
Jan van den Ende
Honored Contributor
Solution

Re: remote shell between openvms and hp-ux

Srikanth,

from your Forum Profile:


I have assigned points to 59 of 92 responses to my questions.

The unrated questions are from VMS, HPUX, Storage, & Tru64.

Maybe you can find some time to do some assigning?

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!

To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.

Thanks on behalf of your Forum colleagues.

PS. - nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before - please do not take offence - none is intended!

PPS. - Zero points for this.

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Srikanth Arunachalam
Trusted Contributor

Re: remote shell between openvms and hp-ux

Hi Jan,

Your concerns are quiet valid. I have always tried to assign points then and there, for some of it I might have missed it. Appologize for it and will do assign points.

Thanks,
Srikanth A