1834136 Members
2419 Online
110064 Solutions
New Discussion

Automatic telnet

 
Vicente Sanchez_3
Respected Contributor

Automatic telnet

Hi all,

I'm in a migration process and I'd like to execute automatic telnet from HP9000 script to HP3000 .

Is it possible?.

regards, Vicente.
4 REPLIES 4
Vicente Sanchez_3
Respected Contributor

Re: Automatic telnet

I'm sorry about the message test. I know that is possible to do a telnet from a script. What I really want to do is automatic logon.

regards, Vicente.
Kwan Fong, Emile
Honored Contributor

Re: Automatic telnet

Hello Vincente,

The script is done on the HP9000 so I'll transfer your post to the HPUX room.
King is the customer!
Michael Duthie
Trusted Contributor

Re: Automatic telnet

Not sure if this helps but this is how you set up Remote Shell (REMSH) between an HP3000 and UNIX?

On the HP3000 system
--------------------

1. System must be running on 5.5 with Powerpatch 3 or above.

2. Edit the SERVICES.NET.SYS file and verify that the following line
exists:

shell 514/tcp cmd #remote command, no passwd used

Add the line if it does not exist. If the line exists but is
preceded by a pound symbol (#), delete the # and any spaces before
the service name.

On the UNIX system
--------------------

1. Verify that the inetd daemon in running.

2. Verify that the /etc/inetd.conf file contains the following line:

shell stream tcp nowait root /etc/remshd remshd

Add the line if it does not exist. If the line exists but is
preceded by a pound symbol (#), delete the # and any spaces before
the service name.

3. Verify that the remote shell deamon is present. File /etc/remshd
must exist.

4. Create a .rhosts file in the home directory for the logon user.

.rhosts will contain the HP3000 name and user logon that is
permitted to execute the remote shell.

ie. .rhosts will look like this.

hp3000hostname MANAGER.SYS
hp3000hostname USER.ACCOUNT1


This will allow access for all users logged on as MANAGER.SYS or
USER.ACCOUNT1

Note: The only options for the .rhosts user logon are as follows.

USER.ACCOUNT -> To allow users logged on as USER.ACCOUNT
+ -> This is a wildcard for all users on the HP3000.
Vicente Sanchez_3
Respected Contributor

Re: Automatic telnet

Hello Mike,

Thanks for the reply.

The problem is that I want the script being executed from HP9000 to HP3000 and remsh is only implemented in MPE as client, not as server.

Regards, Vicente.