Operating System - OpenVMS
1748195 Members
4316 Online
108759 Solutions
New Discussion юеВ

Re: Rebooting using telnet from a VMS box

 
Phil.Howell
Honored Contributor

Re: Rebooting using telnet from a VMS box

if you cannot use kermit...
you could write your own
you should create the telnet session as suggested above, then check that you can access your server using set host /dte
you then have to write a program to simulate your interaction with the tna device
there are programs in older sys$examples called DTE* that you can use as a template.
Phil
Robert Gezelter
Honored Contributor

Re: Rebooting using telnet from a VMS box

Hassan,

In one of your earlier messages, you said that you "could not install Kermit". What is the precise nature of the problem?

Kermit is a normal user-mode program and does not require any privileges. You should not have encountered any problem (this is true both for the very outdated VAX Kermit and all versions of C-Kermit).

- Bob Gezelter, http://www.rlgsc.com
Phillip Thayer
Esteemed Contributor

Re: Rebooting using telnet from a VMS box

Hassan,

Try this command in TCPIP:

TCPIP> CREATE_SESSION ip-address 23 /PERMANENT/PROTOCOL=TELNET 999

This will create a TNA999: device to use to interact with the FEP. Then you can use a DCL Open command as follows:

OPEN/READ/WRITE FEP_CHAN TNA999:

Then you can read using the command:

READ FEP_CHAN LINE

and useing the f$loc lexical function you look for your menu prompts. Once you get your menu prompts, then use

WRITE FEP_CHAN "menu-option-desired"

To send the proper menu selection to your FEP. If you were to write LINE ot the secreen each time it is read you would simply echo the menu to the VMS terminal running the DCL procedure and allow the user to enter the menu selection they wanted. Each time they enter a menu selection you would go to the top of your code logic that reads and echos the menu to the VMS terminal.

This should do what you are looking for and more. If your FEP shutsdown the TNA999: will be closed automaticall and you can execute the DCL procedure again when it finishs rebooting.

One other caveat, you may need to use a number other than 999 unless there is a way that someone knows to determine how he can get a number greater than the dynamic numbers used by TELNET.

Phil
Once it's in production it's all bugs after that.
Sebastian Bazley
Regular Advisor

Re: Rebooting using telnet from a VMS box

You can do something like:

$ PIPE TELNET /CREATE host 23 >tempfile

the file will contain something like:

%TELNET-S-CRSES, Session created on TNA27

You can read the tempfile to find the TNA device and use that.

S.
P.S. There's probably a bootstrap version of Kermit written in DCL somewhere ;-)
Robert Gezelter
Honored Contributor

Re: Rebooting using telnet from a VMS box

Hassan,

Concerning Sebastian's comment, C-Kermit binaries are available via the Kermit www site at:
http://www.columbia.edu/kermit/ck80binaries.html

These can be downloaded directly via the www and used.

The Kermit Project home page is itself at
http://www.columbia.edu/kermit

The Kermit site contains complete documentation, albeit is in a less well formatted version than the book. The book is also easily available, and fairly complete.

- Bob Gezelter, http://www.rlgsc.com
Willem Grooters
Honored Contributor

Re: Rebooting using telnet from a VMS box

No matter what software is used: When rebooting, you will loose connection. You will be able to initiate a reboot, if the software on the other side allows it (since theer are connections opened) it will shutdown - but when startup fails for some reason, you will need to have another way of finding out why it failed.

Something to take into account ;-)
Willem Grooters
OpenVMS Developer & System Manager
Sebastian Bazley
Regular Advisor

Re: Rebooting using telnet from a VMS box

If the remote server console can be connected to a Terminal server (DECserver!) or similar, then the connection from the VMS server can be maintained over a reboot.

Equally, if the remote server has some kind of console server software (e.g. like the new Integrity boxes I believe), it may be possible to maintain the connection over a reboot.
Volker Halle
Honored Contributor

Re: Rebooting using telnet from a VMS box

Please have a look at the following thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1036086

It provides as link to the non-interactive TELNET client I've mentionend earlier.

Volker.