Operating System - HP-UX
1822148 Members
3936 Online
109640 Solutions
New Discussion юеВ

Shutdown & Restart HPUX Servers

 
SOLVED
Go to solution
Betty Hardin
Frequent Advisor

Shutdown & Restart HPUX Servers

Covering for admin who is no longer here ... I have never rebooted these boxes (L9000 & 3000) and need to do that tomorrow so that building maintenance can do something. Any gotchas I need to watch out for ?
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: Shutdown & Restart HPUX Servers

Do you need to just reboot them or actually shut them down for a while and then restart them?

If you need to shut down:

# shutdown -hy 0

This will shut the machine down, you then can turn them off if you need to. Then to restart them just turn the power back on and they *should* come up automatically.

Bryan D. Quinn
Respected Contributor

Re: Shutdown & Restart HPUX Servers

Hello,

If you are just rebooting, I would make sure that AUTOBOOT is set to ON. To check it just run the setboot command without options. Otherwise, if this is not set the box will set there forever waiting for you to type in a boot path.

Hope this helps!
-Bryan
John Dvorchak
Honored Contributor

Re: Shutdown & Restart HPUX Servers

Welcome to the wonderful and exciting world of the systems admin with no training and expected to be a guru. Of course that was tongue in cheek.

Logon as root and cd / to run the shutdown command. Do the systems need to be shutdown for an extended period of time? If so you will have to get on the console and and run the shutdown and halt command which can be done in one step:

> shutdown -hy 0

That says shutdown and halt in 0 seconds. The "-hy" means halt and yes to any questions about wether or not to really do this.

Now after building maintenance is finished you can go to the console and hit B which will put you in the command processor and then type rs and hit enter. That tells the system to do a "reset" and it should boot itself right back up in a few minutes without any intervention from you at all. If building maintenance is shuting down the power, the systems will restart them selves with you doing anything at all when the power is restored. You may have to cycle the power switch but I don't think so.

A good thing to know is http://docs.hp.com which will take you to all kinds of HP documentation.

Good luck,
John
If it has wheels or a skirt, you can't afford it.
Betty Hardin
Frequent Advisor

Re: Shutdown & Restart HPUX Servers

Shutting down four hours. I am hoping you just push the button :-)
Patrick Wallek
Honored Contributor

Re: Shutdown & Restart HPUX Servers

Do NOT just turn the machine off.

You must log on to the machine first and run

# shutdown -hy 0

Ideally this would be done at the system console so you can see when the machine is finished shutting down.

At that point, turn everything off.

Then when you need to come backup, turn everything back on. If you have external disk arrays, fibre switches, network gear, etc., I would turn all of that on before you actually turn your system back on.

Good luck.

Betty Hardin
Frequent Advisor

Re: Shutdown & Restart HPUX Servers

"Welcome to the wonderful and exciting world of the systems admin with no training and expected to be a guru. Of course that was tongue in cheek."

Thanks. You just never know what some wizard has done to the system. Or you find out that the guy before you left the backup tapes in a bank vault that doesn't open until 8am on Monday morning (been there).