Operating System - OpenVMS
1755747 Members
3913 Online
108837 Solutions
New Discussion юеВ

Rebooting a Front End Processor(FEP) using TELNET or FTP

 
Sk Noorul  Hassan
Regular Advisor

Rebooting a Front End Processor(FEP) using TELNET or FTP

Hi,

I have got Front End processors which allows login using telnet. To reboot the FEP, I have to select option 1 & option 16 and then then select 1 to finally reboot the FEP.
So is it possible to write a DCL sript to reboot the FEP using Telnet or FTP ?
11 REPLIES 11
Andy Bustamante
Honored Contributor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

Assuming your FEP is a VMS system, it sounds like the login you're using provides a menu. The VMS shutdown command file is:

@sys$system:shutdown

You need an account which gives you access to DCL. You could also try signing on with the /NOCOMMAND qualifier following your user name. This will bypass the login.com for the user. If the user is configured to run as a captive account this still won't give you DCL access however.

In addtion to the VMS shutdown, your application may need a graceful shutdown as well. I'd start by reviewing the login.com and seeing what provides the menu you see.

Andy
If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Sk Noorul  Hassan
Regular Advisor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

Andy,

Actually, my FEP is having it's own O/S in it and I have to reboot it sitting in my main server, which runs on VMS using telnet.
Wim Van den Wyngaert
Honored Contributor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

FTP will be difficult.

Isn't there some form of rsh, rexec or rlogin on the fep that allows you to exec the boot command ?

Wim
Wim
Heinz W Genhart
Honored Contributor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

Hi Hassan

what I did not understand until now, is Your FEP a VMS Machine ?

Heinz W Genhart
Honored Contributor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

Hi Hassan

If Your FEP is a VMS machine, then the proble You have is, that the network will be shutdown early in the shutdown process and You will be disconnected.

If so, You can execute a command file on the target machine, which does the shutdown as detached process.
A Example, how to do this is the following:

$ set ver
$ IF F$MODE() .EQS. "BATCH" THEN GOTO start_detached
$ depth = F$ENVIRONMENT("DEPTH")
$ IF depth .EQ. 0 THEN GOTO run_detached
$ GOTO start_detached
$!
$start_detached:
$ this_node=F$EDIT(F$GETSYI("NODENAME"),"COLLAPSE")
$ date=F$CVTIME("","comparison","DATE")
$ RUN SYS$SYSTEM:LOGINOUT.EXE -
/INPUT='F$ENVIRONMENT("PROCEDURE")' -
/OUTPUT='F$TRNLNM("SYS$LOGIN")'Shutdown_'this_node'_'date'.log -
/ERROR='F$TRNLNM("SYS$LOGIN")'Shutdown_'this_node'_'date'.log -
/PROC=SHUTDOWN -
/DETACHED
$ EXIT
$!
$run_detached:
$ REPL/ALL/BEL/URGENT "Detached REBOOT of ''F$GETSYI("NODENAME")'. PID is ''F$GETJPI("","PID")'"
$ SHUTDOWN == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER NO NONE"
$ SHUTDOWN

Hope that may help ...
Heinz W Genhart
Honored Contributor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

Hi Hassan

If Your FEP is a VMS machine, then the proble You have is, that the network will be shutdown early in the shutdown process and You will be disconnected.

If so, You can execute a command file on the target machine, which does the shutdown as detached process.
A Example, how to do this is the following:

$ set ver
$ IF F$MODE() .EQS. "BATCH" THEN GOTO start_detached
$ depth = F$ENVIRONMENT("DEPTH")
$ IF depth .EQ. 0 THEN GOTO run_detached
$ GOTO start_detached
$!
$start_detached:
$ this_node=F$EDIT(F$GETSYI("NODENAME"),"COLLAPSE")
$ date=F$CVTIME("","comparison","DATE")
$ RUN SYS$SYSTEM:LOGINOUT.EXE -
/INPUT='F$ENVIRONMENT("PROCEDURE")' -
/OUTPUT='F$TRNLNM("SYS$LOGIN")'Shutdown_'this_node'_'date'.log -
/ERROR='F$TRNLNM("SYS$LOGIN")'Shutdown_'this_node'_'date'.log -
/PROC=SHUTDOWN -
/DETACHED
$ EXIT
$!
$run_detached:
$ REPL/ALL/BEL/URGENT "Detached REBOOT of ''F$GETSYI("NODENAME")'. PID is ''F$GETJPI("","PID")'"
$ SHUTDOWN == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER NO NONE"
$ SHUTDOWN

Hope that helps ...
Edwin Gersbach_2
Valued Contributor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

As Hassan said his FEP has its own (non VMS) O/S but allowes telnet connections (which is currently used interactively to shutdown the FEP) he probably is after a method to open a telnet session from within a DCL script, sending some characters to the remote node just as if they where typed in an interactively.

Edwin
Volker Halle
Honored Contributor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

Hi,

wouldn't KERMIT be the right tool to create a script of remote commands to walk through the command menue and shutdown your FEP ?

Volker.
Sk Noorul  Hassan
Regular Advisor

Re: Rebooting a Front End Processor(FEP) using TELNET or FTP

Edwin is right. I want some kind of DCL script which I will execute in my VMS server that will login to FEP (non VMS o/s) using Telnet and will reboot the FEP.