Shutting down windows from the command line – HP BL860C User Manual
Page 81
You can use this method when using a graphical interface to the server.
•
Issue the
shutdown
command from the Windows command line.
You can issue this command from a command prompt through the Special Administration
Console (SAC) or from any other command line.
The Windows
shutdown
command includes the following options:
/s
Shuts down and halts (power off) the server. This is the equivalent of Start—>Shut
Down, Shut down. To power on the server, use the iLO 2 MP
PC
command.
/r
Shuts down and restarts the server. This is the equivalent of Start—>Shut Down,
Restart.
/a
Aborts a server shutdown.
/t xxx
Sets the timeout period before shutdown to
xxx
seconds. The timeout period ranges
from 0–600, with a default of 30.
For details, see the
help shutdown
Windows command.
Shutting Down Windows from the Command Line
From the Windows command line, issue the
shutdown
command to shut down the operating
system.
1.
Log in to Windows running on the server that you want to shut down.
For example, access the system console and use the Windows SAC interface to start a
command prompt, from which you can issue Windows commands to shut down the server.
2.
Check to see whether any users are logged in.
Use the
query user
or
query session
command.
3.
Issue the
shutdown
command and the appropriate options to shut down the Windows
Server 2003 on the server.
You have the following options when shutting down Windows:
•
To shut down Windows and reboot:
shutdown /r
or choose the Start —> Shut Down
action and choose Restart from the pull-down menu.
•
To shut down Windows and halt (power off server hardware):
shutdown /s
or choose
the Start —> Shut Down action and choose Shut down from the pull-down menu.
To reboot a halted server you must power on the server using the
PC
command at the
iLO 2 MP Command menu.
•
To abort a shutdown (stop a shutdown that has been initiated):
shutdown /a
For example:
shutdown /r /t 60 /c "Shut down in one minute."
This command initiates a Windows system shutdown and reboot after a timeout period of 60
seconds. The
/c
option specifies a message that is broadcast to any other users of the server.
Booting and Shutting Down Microsoft Windows
81