Operating System - HP-UX
1752753 Members
4537 Online
108789 Solutions
New Discussion юеВ

how to auto reboot system

 
SOLVED
Go to solution
Zishan
Regular Advisor

how to auto reboot system

Hi,
Anybody would like to know that how to schedule the HP-UX V3 server to resboot on specified time.
Regards,
9 REPLIES 9
stephen peng
Valued Contributor

Re: how to auto reboot system

just man "at" command
Patrick Wallek
Honored Contributor

Re: how to auto reboot system

Not that I would advise it, but setting up a cron job would be a good way to do it.
Dennis Handly
Acclaimed Contributor

Re: how to auto reboot system

>how to schedule the HP-UX V3 server to reboot on specified time.

Any particular reason for rebooting? These servers are meant to stay up 24/7 unless you need to do some type of hardware or software maintenance.
SoorajCleris
Honored Contributor

Re: how to auto reboot system

Is it an test server? handled only by single user?

Anyway , you can do with the help of cron.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Zishan
Regular Advisor

Re: how to auto reboot system

hi,

yes,it is a test server.Please give me an example.

Regards,
Mohamed AbdelMoneim
Honored Contributor

Re: how to auto reboot system

you can edit the cron tab by using
#crontab -e
and specify the time you want to reboot the server with command
#shutdown -r -t 0
Dennis Handly
Acclaimed Contributor
Solution

Re: how to auto reboot system

>Please give me an example.

30 01 * * * shutdown -r -y 60
This reboots the system at 0130 each day.
Zishan
Regular Advisor

Re: how to auto reboot system

what if i want to reboot exact after 1 month ?

Regards,
Mohamed AbdelMoneim
Honored Contributor

Re: how to auto reboot system

you can specify that in the cron table in the date field, if you set it to one, that means the fist day on each month the command with be executed,
Cron table is arranged from left to right as below
min(0-59) hours(0-32) date(#1-31 ) month(month#1-12) day(week #0-6)