How to reboot a HP-UX server (6787 Views)
Reply
Occasional Visitor
Shahid Nadeem
Posts: 1
Registered: ‎08-17-2004
Message 1 of 5 (6,787 Views)

How to reboot a HP-UX server

I am new to HP-UX can someone tell me how to reboot the server please.
Honored Contributor
Sundar_7
Posts: 1,938
Registered: ‎11-07-2000
Message 2 of 5 (6,787 Views)

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
Sundar_7
Posts: 1,938
Registered: ‎11-07-2000
Message 3 of 5 (6,787 Views)

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
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 4 of 5 (6,787 Views)

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
Geoff Wild
Posts: 7,170
Registered: ‎06-04-2001
Message 5 of 5 (6,787 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.