1755013 Members
3407 Online
108828 Solutions
New Discussion юеВ

Automate system reboot

 
SOLVED
Go to solution
david bernard_2
New Member

Automate system reboot

Does anyone know how i could schedule OpenVMS to automatically restart?

I have tried creating a com file with the following 2 lines:
1.reboot :==@sys$system:shutdown 15 shutdown yes no later yes none
2.reboot

This seems to invoke the shutdown routine, but when it shuts down the queue's the job is ended before finishing.

I'm running OpenVMS v7.3-1 on a DS25.

Thanks in advance,
Dave
13 REPLIES 13
Jim_McKinney
Honored Contributor
Solution

Re: Automate system reboot

Submit the attached command procedure to batch to execute at the time of your choice. It will create a detached job that will execute the shutdown/reboot at that time.
Jim_McKinney
Honored Contributor

Re: Automate system reboot

I notice that the file that I attached to my previous post had a line wrap. That double-quote character that you see alone on a line obviously belongs on the end of the previous command line.
Bob Kirkwood
New Member

Re: Automate system reboot

Here is a procedure that I have been using for some years.
Arch_Muthiah
Honored Contributor

Re: Automate system reboot

Dave,

Using SYSMAN's SHUT NODE command, you can do this.
$ mcr sysman
set env/node=target
shut node /automatic_reboot /invoke_shutdown -
/minutes_to_shutdown=mnts -
/reason="some" /reboot_check
exit
$ exit

Archunan
Regards
Archie
Arch_Muthiah
Honored Contributor

Re: Automate system reboot

Dave,
The other method as per Mr.Jim suggestion, you can create one small comd procedure(st.com) with only command that is your shutdown command and RUN loginout.exe as DETACHED process...

st.com
-------
...
$ @sys$system:shutdown 10 "reboot" no - yes "auto reboot" no reboot_check
$ exit

and

$ run/detached/input=[]st.com -
/output=sys$manager:shutdown.log -
sys$system:loginout


Archunan
Regards
Archie
Art Wiens
Respected Contributor

Re: Automate system reboot

Of course someone needs to ask ...

Why do you need to reboot VMS? ;-)

Cheers,
Art
david bernard_2
New Member

Re: Automate system reboot

Thanks everyone!

Jim,

I tried the command you attached and it worked perfectly!!!

For some reason the system sometimes goes unresponsive - No connections allowed, which we're looking into, and testing our environment on a test system. In the meantime i've been restarting the system a few times a week in the middle of the night to suppress the issue.

Thanks again
Ian Miller.
Honored Contributor

Re: Automate system reboot

when the system hangs then crash it and the crash dump can be analysed to determine the reason.
____________________
Purely Personal Opinion
comarow
Trusted Contributor

Re: Automate system reboot

To repeat, with a forced crash, we can determine the cause.

Some of the most common causes are
page files filling up
$show mem/files
regularly

Running out of pagedyn
$show mem/full/pool
the pagedyn should be 50% free. It can't expand.

Not being able to expand npagedyn.
Seame
$sho mem/full/pool

Those account for probably 95% of the hangs.

Make sure you are up to date on ECOs.