Operating System - HP-UX
1753844 Members
7380 Online
108806 Solutions
New Discussion юеВ

How to reboot a HP-UX server

 
Shahid Nadeem
New Member

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 4
Sundar_7
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 ?
Sundar_7
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 ?
Steven E. Protter
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
Geoff Wild
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,

https://support.hpe.com/hpesc/public/home

s 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.