BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
General
Showing results for 
Search instead for 
Do you mean 

How to reboot a HP-UX server

Occasional Visitor

How to reboot a HP-UX server

I am new to HP-UX can someone tell me how to reboot the server please.
4 REPLIES
Honored Contributor

Re: How to reboot a HP-UX server


# cd /
# /usr/sbin/shutdown -r -y 0

-r = reboot

-y = dont ask for confirmation

0 = Shutdown now

shutdown command is the preferred way to shutdown a system though you could reboot and init commands too.

# reboot

reboot command will not execute any kill scripts and reboot the system in a crude way :-). not recommended unless you are sure the shutdown scripts are going to hang (like if you have messed up with your cluster and you are sure cluster halt will fail).

# init 0

can halt the system

# init 6

will shutdown and reboot the system
Learn What to do ,How to do and more importantly When to do ?
Honored Contributor

Re: How to reboot a HP-UX server

oops ! sorry forget about init 6 - I probably confused SCO with HP-UX here :-)
Learn What to do ,How to do and more importantly When to do ?
Exalted Contributor

Re: How to reboot a HP-UX server

You must under default configuration be root user to restart

shutdown -ry now

to shutdown restart

shutdown -hy now

to halt

sEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Honored Contributor

Re: How to reboot a HP-UX server

Others have giving you your answer.

New to HP-UX / Unix?

man is your friend:

man 1m shutdown

That will give you the "manual" page on shutdown.

Also, http://docs.hp.com is a great resource and these forums of course :)

Rgds...Geoff

PS: Don't forget to assign points to those that help you. Thanks.
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.